aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-05 23:29:37 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-05 23:29:37 +0900
commit6d9d978fafc2e970c4b5805a84b1d93fec731d86 (patch)
treee4101d8689dfc389ad4583a1da768c70faa2bd80
parentevas cache image - protect against null cache ptrs (diff)
downloadefl-6d9d978fafc2e970c4b5805a84b1d93fec731d86.tar.gz
evas cache - fix return val to fix warning
fix return val if cache is null (something bad happening)
-rw-r--r--src/lib/evas/cache/evas_cache_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/cache/evas_cache_image.c b/src/lib/evas/cache/evas_cache_image.c
index aabab09126..11b9a1d64e 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -507,7 +507,7 @@ _evas_cache_image_entry_preload_add(Image_Entry *ie, const Eo *target,
Evas_Cache_Target *tg;
Image_Entry_Task *task;
- if (!ie->cache) return;
+ if (!ie->cache) return 0;
evas_cache_image_ref(ie);
if (ie->flags.preload_done)
{