summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2020-08-05 06:35:10 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-08-05 10:47:15 +0200
commite4651d8fe5518faa1acf145b1570ceaee4eac39d (patch)
treed303583edc59ca4319691666c6851f4c9f7cb392
parentefdd1b166e7d0bdd565b00f8acd257ef0bf8531f (diff)
efl_canvas: fix a potentional error of null deref
this is a patch to fix a potentional error by null dereferencing. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D12093
-rw-r--r--src/lib/efl_canvas_wl/efl_canvas_wl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efl_canvas_wl/efl_canvas_wl.c b/src/lib/efl_canvas_wl/efl_canvas_wl.c
index 6430ff84a0..15f5c255b2 100644
--- a/src/lib/efl_canvas_wl/efl_canvas_wl.c
+++ b/src/lib/efl_canvas_wl/efl_canvas_wl.c
@@ -4170,6 +4170,7 @@ static void
4170comp_render_pre_proxied(Eo *o, Evas *e, void *event_info) 4170comp_render_pre_proxied(Eo *o, Evas *e, void *event_info)
4171{ 4171{
4172 Comp_Surface *cs = evas_object_data_get(o, "comp_surface"); 4172 Comp_Surface *cs = evas_object_data_get(o, "comp_surface");
4173 EINA_SAFETY_ON_NULL_RETURN(cs);
4173 Comp_Buffer *buffer = cs->buffer[!cs->render_queue]; 4174 Comp_Buffer *buffer = cs->buffer[!cs->render_queue];
4174 4175
4175 //fprintf(stderr, "PROXY RENDER_PRE %d\n", buffer ? wl_resource_get_id(buffer->res) : -1); 4176 //fprintf(stderr, "PROXY RENDER_PRE %d\n", buffer ? wl_resource_get_id(buffer->res) : -1);