summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-03-10 16:23:05 +0000
committerRichard Hughes <richard@hughsie.com>2016-03-10 16:23:05 +0000
commit129d679414e468611ac5dfe9dfc6b489bdf832db (patch)
treebf5178fba39564de73012af8c038746bc0b6e11e
parent9913388c30d0db0d9a009ab3f3dba41bebcfefcc (diff)
downloadgusb-129d679414e468611ac5dfe9dfc6b489bdf832db.tar.gz
trivial: Fix compile warning with GCC6
-rw-r--r--gusb/gusb-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 45aa57c..10eb374 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -456,7 +456,7 @@ g_usb_device_get_custom_index (GUsbDevice *device,
rc = libusb_get_active_config_descriptor (device->priv->device, &config);
if (!g_usb_device_libusb_error_to_gerror (device, rc, error))
- return NULL;
+ return 0x00;
/* find the right data */
for (i = 0; i < config->bNumInterfaces; i++) {