summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-02-06 16:48:44 +0000
committerBastien Nocera <hadess@hadess.net>2012-02-06 17:34:23 +0000
commitf02b77757f36016636cfa5cc2bf489ceb4708643 (patch)
tree2ae0584b1d5d348b9b0946753df954908a5bca27
parent8e799e4b4bae02a62489bd849e2411589950d1e4 (diff)
lib: Assert that we get a product string for bluetooth
-rw-r--r--libwacom/libwacom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
index fce51b6..edf88bf 100644
--- a/libwacom/libwacom.c
+++ b/libwacom/libwacom.c
@@ -129,6 +129,7 @@ get_device_info (const char *path,
* vendor 0x56a
* product 0x81 */
product_str = g_udev_device_get_property (device, "PRODUCT");
+ g_assert (product_str);
if (sscanf(product_str, "%d/%x/%x/%d", &garbage, vendor_id, product_id, &garbage) != 4) {
libwacom_error_set(error, WERROR_UNKNOWN_MODEL, "Unimplemented serial bus");
goto bail;