elm_prefs_data.c: Check return value of eina_value_get().

This fixes coverity CID 1040042.
This commit is contained in:
Daniel Juyung Seo 2013-11-08 11:22:01 +09:00
parent 822671c7e7
commit 2fa0b556a9
1 changed files with 4 additions and 2 deletions

View File

@ -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));