]> sigrok.org Git - libsigrok.git/commitdiff
Check sr_config_set value argument is not NULL
authorJoel Holdsworth <redacted>
Mon, 28 Jan 2013 20:28:03 +0000 (20:28 +0000)
committerJoel Holdsworth <redacted>
Mon, 28 Jan 2013 20:28:03 +0000 (20:28 +0000)
hwdriver.c

index 4c2ae142b622595b9e5914ab93b86c456409db27..9ace9f09df6e98b35196b10c3ae4afd155a6eedd 100644 (file)
@@ -351,7 +351,7 @@ SR_API int sr_config_set(const struct sr_dev_inst *sdi, int key,
 {
        int ret;
 
-       if (!sdi || !sdi->driver)
+       if (!sdi || !sdi->driver || !value)
                return SR_ERR;
 
        if (!sdi->driver->config_set)