]> sigrok.org Git - libsigrok.git/commitdiff
small warning fix
authorBert Vermeulen <redacted>
Thu, 17 Mar 2011 13:53:06 +0000 (14:53 +0100)
committerBert Vermeulen <redacted>
Sun, 3 Apr 2011 04:18:05 +0000 (06:18 +0200)
device.c

index d11eea5c358177ae1b33db7eae50de59e8b54407..aa1ec7828a36e5228094b2ad0c13a2edfe09b093 100644 (file)
--- a/device.c
+++ b/device.c
@@ -238,7 +238,7 @@ gboolean sr_device_has_hwcap(struct sr_device *device, int hwcap)
        int *capabilities, i;
 
        if (!device || !device->plugin)
-               return;
+               return FALSE;
 
        if ((capabilities = device->plugin->get_capabilities()))
                for (i = 0; capabilities[i]; i++)