Check sr_config_set value argument is not NULL

This commit is contained in:
Joel Holdsworth 2013-01-28 20:28:03 +00:00
parent 4c961f5ed5
commit 140185af6c
1 changed files with 1 additions and 1 deletions

View 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)