From: Joel Holdsworth Date: Mon, 28 Jan 2013 20:28:03 +0000 (+0000) Subject: Check sr_config_set value argument is not NULL X-Git-Tag: dsupstream~297 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=140185af6c2b73a2b940012269f893962cbecd52;p=libsigrok.git Check sr_config_set value argument is not NULL --- diff --git a/hwdriver.c b/hwdriver.c index 4c2ae142..9ace9f09 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -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)