aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2004-01-18 12:46:19 +0000
committerMIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>2004-01-18 12:46:19 +0000
commitedac5229aec2f3e95f4d9aa37de9e0b17803cd4a (patch)
treebdc0758b2c5b4893257c794def1fe1eb005dac31 /sys/dev/usb/usb_subr.c
parent703981ae282bb4f3b4eb99d1984111b8f9fcb100 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index ec88dc6a5a01..b73f20dba7a3 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -257,6 +257,10 @@ usbd_devinfo_vp(usbd_device_handle dev, char *v, char *p, int usedev)
usbd_trim_spaces(vendor);
product = usbd_get_string(dev, udd->iProduct, p);
usbd_trim_spaces(product);
+ if (vendor && !*vendor)
+ vendor = NULL;
+ if (product && !*product)
+ product = NULL;
} else {
vendor = NULL;
product = NULL;