forked from enlightenment/efl
elm_config: Fix unchecked return value
Small patch to check the return value of ecore_file_cp. Coverity reports this as an unchecked return value, so let's just add a simple check here. Fixes Coverity CID1399101 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8309
This commit is contained in:
parent
02d47fd61a
commit
86cf4e5d7b
|
@ -779,7 +779,8 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
|
||||||
eet_close(ef);
|
eet_close(ef);
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
ecore_file_cp(buf, buf2);
|
if (!ecore_file_cp(buf, buf2))
|
||||||
|
ERR("Error saving Elementary's derived configuration profile file");
|
||||||
ecore_file_unlink(buf);
|
ecore_file_unlink(buf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue