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