Check sr_config_set value argument is not NULL
This commit is contained in:
parent
4c961f5ed5
commit
140185af6c
|
@ -351,7 +351,7 @@ SR_API int sr_config_set(const struct sr_dev_inst *sdi, int key,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!sdi || !sdi->driver)
|
if (!sdi || !sdi->driver || !value)
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
|
|
||||||
if (!sdi->driver->config_set)
|
if (!sdi->driver->config_set)
|
||||||
|
|
Loading…
Reference in New Issue