summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_shape.c
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-03 16:38:14 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:38:14 +0200
commit5c31036249ed5c21f249387d785fb85d97b5926e (patch)
treec8927742fa4e463a487f51b42b3ff6234492ca5b /src/lib/evas/canvas/evas_vg_shape.c
parent4ad8b3ab521f8ea69e34211c818f276740889e5b (diff)
evas/canvas : bail out in case of empty or null dash.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 7b7ec01..e67c3b5 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -199,6 +199,9 @@ _efl_vg_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
199 pd->stroke.dash = NULL; 199 pd->stroke.dash = NULL;
200 pd->stroke.dash_count = 0; 200 pd->stroke.dash_count = 0;
201 201
202 // check for null or empty dash
203 if (!dash || !length) return;
204
202 pd->stroke.dash = malloc(sizeof (Efl_Gfx_Dash) * length); 205 pd->stroke.dash = malloc(sizeof (Efl_Gfx_Dash) * length);
203 if (!pd->stroke.dash) return ; 206 if (!pd->stroke.dash) return ;
204 207