From 2cb621fe4ab852a586c07ce3c5dbae0ee3556afa Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 2 Jan 2017 22:58:24 +0900 Subject: [PATCH] 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 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: } 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;