evas loader - don't stat NULL file paths

something i found valgrinding my recent async improvments. statting
null path. fix it.
This commit is contained in:
Carsten Haitzler 2017-01-02 22:58:24 +09:00
parent 5ae6e1db2f
commit 2cb621fe4a
1 changed files with 2 additions and 1 deletions

View File

@ -457,7 +457,8 @@ end:
}
if (!ie->f) return EVAS_LOAD_ERROR_DOES_NOT_EXIST;
if (stat(ie->file, &st) == 0) _timestamp_build(&(ie->tstamp), &st);
if ((ie->file) && (stat(ie->file, &st) == 0))
_timestamp_build(&(ie->tstamp), &st);
memset(&property, 0, sizeof (property));
property.w = ie->w;