diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-02 16:52:07 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-02 18:12:47 +0200 |
commit | 3b64e4d4f40baac56148c7d333d6a0053358ec7a (patch) | |
tree | 770d251059fd20ee9a4ed7510f639a716367c7b0 /src/udev/udev-builtin-hwdb.c | |
parent | 7283a80d10217b929acf58899f016ca06dacdc53 (diff) |
udev: add some asserts
Mostly for documentation purposes.
Diffstat (limited to 'src/udev/udev-builtin-hwdb.c')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index 5e0e7ebb11..7dfc74e6fa 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -85,6 +85,8 @@ static int udev_builtin_hwdb_search(struct udev_device *dev, struct udev_device bool last = false; int r = 0; + assert(dev); + for (d = srcdev; d && !last; d = udev_device_get_parent(d)) { const char *dsubsys; const char *modalias = NULL; |