projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b6329
)
elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set
62/38062/1
author
Jaeun Choi
<jaeun12.choi@samsung.com>
Fri, 10 Apr 2015 09:31:58 +0000
(18:31 +0900)
committer
Jaeun Choi
<jaeun12.choi@samsung.com>
Fri, 10 Apr 2015 09:53:01 +0000
(18:53 +0900)
@fix
Change-Id: I87c3dc940901f9da38c551bed689a849c879713d
Origin: upstream
src/lib/elm_image.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_image.c
b/src/lib/elm_image.c
index cddc2c45a0615a3f0919d5a9269761c80187dfe9..2ac805d2dc7a6a6ebb469e480eb1ede49dd6141b 100644
(file)
--- a/
src/lib/elm_image.c
+++ b/
src/lib/elm_image.c
@@
-604,6
+604,8
@@
_elm_image_file_set_do(Evas_Object *obj)
EOLIAN static Eina_Bool
_elm_image_memfile_set(Eo *obj, Elm_Image_Data *sd, const void *img, size_t size, const char *format, const char *key)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(img, EINA_FALSE);
+
_elm_image_file_set_do(obj);
evas_object_image_memfile_set