summaryrefslogtreecommitdiff
path: root/src/bin/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 17:16:02 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 17:16:02 +0900
commitc87748a7c12f609c8ded05e14a5e8000cb138e52 (patch)
tree30b7d92eccd2c8c2e414d3539ab749059e7b40b7 /src/bin/evas
parent3ad7feafe32b872435b7c57ac6e5bb8b4c54972e (diff)
evas cserve - handle possilbe null ref and fentry pointers
this fixes CID 1193209 with possible NULL refs.
Diffstat (limited to 'src/bin/evas')
-rw-r--r--src/bin/evas/evas_cserve2_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/evas/evas_cserve2_cache.c b/src/bin/evas/evas_cserve2_cache.c
index 7acf201d98..eec4ea3e50 100644
--- a/src/bin/evas/evas_cserve2_cache.c
+++ b/src/bin/evas/evas_cserve2_cache.c
@@ -2898,7 +2898,11 @@ cserve2_cache_image_entry_create(Client *client, int rid,
2898 if (!ientry) 2898 if (!ientry)
2899 return -1; 2899 return -1;
2900 2900
2901 if (!ref)
2902 return -1;
2901 fentry = _file_entry_find(ref->entry->id); 2903 fentry = _file_entry_find(ref->entry->id);
2904 if (!fentry)
2905 return -1;
2902 fentry->images = eina_list_append(fentry->images, ientry); 2906 fentry->images = eina_list_append(fentry->images, ientry);
2903 2907
2904 if (opts && opts->scale_load.dst_w && opts->scale_load.dst_h) 2908 if (opts && opts->scale_load.dst_w && opts->scale_load.dst_h)