summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-02 22:58:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-02 22:58:24 +0900
commit2cb621fe4ab852a586c07ce3c5dbae0ee3556afa (patch)
tree3c74ebacf553b29ed76bc0d610f71ef120bbbf8c /src/lib/evas/common
parent5ae6e1db2f7f181039b05cbb562573321f419a8e (diff)
evas loader - don't stat NULL file paths
something i found valgrinding my recent async improvments. statting null path. fix it.
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_image_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index f51ab01309..8e59bdd4b5 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -457,7 +457,8 @@ end:
457 } 457 }
458 if (!ie->f) return EVAS_LOAD_ERROR_DOES_NOT_EXIST; 458 if (!ie->f) return EVAS_LOAD_ERROR_DOES_NOT_EXIST;
459 459
460 if (stat(ie->file, &st) == 0) _timestamp_build(&(ie->tstamp), &st); 460 if ((ie->file) && (stat(ie->file, &st) == 0))
461 _timestamp_build(&(ie->tstamp), &st);
461 462
462 memset(&property, 0, sizeof (property)); 463 memset(&property, 0, sizeof (property));
463 property.w = ie->w; 464 property.w = ie->w;