forked from enlightenment/efl
elm_prefs_data.c: Check return value of eina_value_get().
This fixes coverity CID 1040042.
This commit is contained in:
parent
822671c7e7
commit
2fa0b556a9
|
@ -444,8 +444,10 @@ _eet_data_save(const Elm_Prefs_Data *prefs_data,
|
|||
if (it->type == ELM_PREFS_TYPE_PAGE)
|
||||
{
|
||||
const char *n;
|
||||
eina_value_get(&item->value, &n);
|
||||
_eet_data_save(prefs_data, eet_file, n);
|
||||
if (eina_value_get(&item->value, &n))
|
||||
_eet_data_save(prefs_data, eet_file, n);
|
||||
else
|
||||
err = EINA_TRUE;
|
||||
}
|
||||
|
||||
const Eina_Value_Type *t = eina_value_type_get(&(item->value));
|
||||
|
|
Loading…
Reference in New Issue