summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-10-29 15:12:58 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-29 15:12:58 +0900
commitaa6d4a3756b8f173d091ccf9f5751b910d6a6b62 (patch)
tree22bab4181d50456069e0c51fb093ec528fe7890a /src/modules
parent44f89bb8ade404604867fd270d53a3952ba513df (diff)
evas/cserve2: Fix error path in evas_cache2_image_writable()
Return NULL and check for nullity in the only calling function. Fixes CID 1039461 (Logically dead code)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index 57766ef34c..b3ab2ce6bc 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1087,7 +1087,14 @@ eng_image_data_get(void *data EINA_UNUSED, void *image, int to_write, DATA32 **i
1087 if (err) *err = error; 1087 if (err) *err = error;
1088 1088
1089 if (to_write) 1089 if (to_write)
1090 im = (RGBA_Image *)evas_cache2_image_writable(&im->cache_entry); 1090 {
1091 im = (RGBA_Image *)evas_cache2_image_writable(&im->cache_entry);
1092 if (!im)
1093 {
1094 *image_data = NULL;
1095 return NULL;
1096 }
1097 }
1091 } 1098 }
1092 else 1099 else
1093#endif 1100#endif