diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-23 09:22:42 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-23 09:22:42 +0200 |
commit | 65f099c721fa568350f8ac019e3a99fda1966082 (patch) | |
tree | 92342bee5a23f3a840a78f0bcca1435187b4a947 /libudev/libudev-device.c | |
parent | c1dbe11dc336f9faf02073a66fe30a12bd438e23 (diff) |
libudev: accept NULL in udev_device_get_tags_list_entry()
Diffstat (limited to 'libudev/libudev-device.c')
-rw-r--r-- | libudev/libudev-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 3f441d0999..a6a1ecb4e9 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -1289,6 +1289,8 @@ void udev_device_cleanup_tags_list(struct udev_device *udev_device) struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_device *udev_device) { + if (udev_device == NULL) + return NULL; return udev_list_get_entry(&udev_device->tags_list); } |