summaryrefslogtreecommitdiff
path: root/src/udev/udev-rules.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-rules.c
parent7283a80d10217b929acf58899f016ca06dacdc53 (diff)
udev: add some asserts
Mostly for documentation purposes.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 4262119886..c2b20cf547 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -664,6 +664,9 @@ static int import_parent_into_properties(struct udev_device *dev, const char *fi
struct udev_device *dev_parent;
struct udev_list_entry *list_entry;
+ assert(dev);
+ assert(filter);
+
dev_parent = udev_device_get_parent(dev);
if (dev_parent == NULL)
return -1;