raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2cb621fe4ab852a586c07ce3c5dbae0ee3556afa

commit 2cb621fe4ab852a586c07ce3c5dbae0ee3556afa
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Jan 2 22:58:24 2017 +0900

    evas loader - don't stat NULL file paths
    
    something i found valgrinding my recent async improvments. statting
    null path. fix it.
---
 src/lib/evas/common/evas_image_load.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/common/evas_image_load.c 
b/src/lib/evas/common/evas_image_load.c
index f51ab01..8e59bdd 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -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;

-- 


Reply via email to