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:
Christopher Michael 2019-03-12 09:57:33 -04:00 committed by Stefan Schmidt
parent 02d47fd61a
commit 86cf4e5d7b
1 changed files with 2 additions and 1 deletions

View File

@ -779,7 +779,8 @@ _elm_config_profile_derived_save(const char *profile, Elm_Config_Derived *derive
eet_close(ef);
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);
}
else