summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-02 16:52:07 +0200
committerTom Gundersen <teg@jklm.no>2015-06-02 18:12:47 +0200
commit3b64e4d4f40baac56148c7d333d6a0053358ec7a (patch)
tree770d251059fd20ee9a4ed7510f639a716367c7b0 /src/udev/udev-event.c
parent7283a80d10217b929acf58899f016ca06dacdc53 (diff)
udev: add some asserts
Mostly for documentation purposes.
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index a5c3edbff8..3488ff3370 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -119,6 +119,8 @@ size_t udev_event_apply_format(struct udev_event *event, const char *src, char *
char *s;
size_t l;
+ assert(dev);
+
from = src;
s = dest;
l = size;