summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-10-14 11:19:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-10-14 11:27:47 +0900
commitc22fa8a96ac7c28f93856a8577825b78be9b5270 (patch)
tree2cc4882ae7730e8935ee2808407cb46245fcc5dc /src/lib/evas/canvas/evas_object_image.c
parentcfedba598c23844946c5af2e038870c7ca6befdc (diff)
Evas: Some coverity fixes
This are false alarms. But the explicit null check doesn't hurt. Also, Coverity doesn't like eo_do_ret. Neither do I. :) - CID 1327246 - CID 1327245
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_object_image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c
index 0a525ba346..fdf31c7317 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -3318,7 +3318,7 @@ _evas_image_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
3318 uvw = imagew; 3318 uvw = imagew;
3319 uvh = imageh; 3319 uvh = imageh;
3320 } 3320 }
3321 else if (!o->cur->source) 3321 else if (!o->cur->source || !source)
3322 { 3322 {
3323 pixels = evas_process_dirty_pixels(eo_obj, obj, o, output, surface, o->engine_data); 3323 pixels = evas_process_dirty_pixels(eo_obj, obj, o, output, surface, o->engine_data);
3324 /* pixels = o->engine_data; */ 3324 /* pixels = o->engine_data; */
@@ -3340,8 +3340,8 @@ _evas_image_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
3340 pixels = oi->engine_data; 3340 pixels = oi->engine_data;
3341 if (oi->has_filter) 3341 if (oi->has_filter)
3342 { 3342 {
3343 void *output_buffer = eo_do_ret(source->object, output_buffer, 3343 void *output_buffer = NULL;
3344 evas_filter_output_buffer_get()); 3344 eo_do(source->object, output_buffer = evas_filter_output_buffer_get());
3345 if (output_buffer) 3345 if (output_buffer)
3346 pixels = output_buffer; 3346 pixels = output_buffer;
3347 } 3347 }