diff options
| author | MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org> | 2004-01-18 12:46:19 +0000 |
|---|---|---|
| committer | MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org> | 2004-01-18 12:46:19 +0000 |
| commit | edac5229aec2f3e95f4d9aa37de9e0b17803cd4a (patch) | |
| tree | bdc0758b2c5b4893257c794def1fe1eb005dac31 /sys/dev/usb/usb_subr.c | |
| parent | 703981ae282bb4f3b4eb99d1984111b8f9fcb100 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
| -rw-r--r-- | sys/dev/usb/usb_subr.c | 4 |
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; |
