check import config dialog unlink() return value

CID 1039964
This commit is contained in:
Mike Blumenkrantz 2014-04-04 13:40:47 -04:00
parent 11197cb684
commit 1285ba4196
1 changed files with 2 additions and 1 deletions

View File

@ -407,7 +407,8 @@ _e_import_config_dialog_del(void *data)
if (import->exe_handler) ecore_event_handler_del(import->exe_handler);
import->exe_handler = NULL;
if (import->tmpf) unlink(import->tmpf);
if (import->tmpf && (unlink(import->tmpf) < 0))
ERR("Could not delete tmpfile '%s'", import->tmpf);
free(import->tmpf);
eina_stringshare_del(import->fdest);
import->exe = NULL;