create: bring back callback to notify UI.

Add check also for NULL in rare case.
This commit is contained in:
Alastair Poole 2018-08-22 18:15:32 +01:00
parent 1d2e8e3c00
commit 708a134120
1 changed files with 2 additions and 1 deletions

View File

@ -290,8 +290,9 @@ _edi_create_error_cb(void *data, Eio_File *handler EINA_UNUSED, int error)
Edi_Create *create;
create = (Edi_Create *) data;
(void) create;
ERR("copy error: [%s]\n", strerror(error));
if (create && create->callback)
create->callback(create->path, EINA_FALSE);
_edi_create_free_data();
}