summaryrefslogtreecommitdiff
path: root/extras/usb_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-02-26 20:57:48 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-02-26 20:57:48 +0100
commit468641f87fbe458f8ee7ed7696b408f6ba98e57d (patch)
tree38dd06ee9f0b7c58be7b1309595bfd34623e67c0 /extras/usb_id
parentf95f1deea1eb15994fe9652d2d9377b466cbd07c (diff)
usb_id: fix NULL string usage
Diffstat (limited to 'extras/usb_id')
-rw-r--r--extras/usb_id/usb_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/usb_id/usb_id.c b/extras/usb_id/usb_id.c
index 92c5f479c3..9ce0cdbe13 100644
--- a/extras/usb_id/usb_id.c
+++ b/extras/usb_id/usb_id.c
@@ -266,7 +266,7 @@ static int usb_id(struct udev_device *dev)
dbg(udev, "syspath %s\n", udev_device_get_syspath(dev));
/* shortcut if we are called for a usb_device */
- if (strcmp(udev_device_get_devtype(dev), "usb_device") == 0) {
+ if (udev_device_get_devtype(dev) != NULL && strcmp(udev_device_get_devtype(dev), "usb_device") == 0) {
dev_if_packed_info(dev, packed_if_str, sizeof(packed_if_str));
dev_usb = dev;
goto fallback;