ector: correctly handle case with NULL being set for efl_gfx_shape_stroke_dash_set.

This commit is contained in:
Cedric BAIL 2015-04-03 16:33:37 +02:00
parent 4bdda2db5a
commit f5f48a8265
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ _ector_renderer_generic_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED,
}
tmp = realloc(pd->stroke.dash, length * sizeof (Efl_Gfx_Dash));
if (!tmp) return ;
if (!tmp && length) return ;
memcpy(tmp, dash, length * sizeof (Efl_Gfx_Dash));
pd->stroke.dash = tmp;