forked from enlightenment/efl
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:
parent
5ae6e1db2f
commit
2cb621fe4a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue