forked from enlightenment/efl
ector: correctly handle case with NULL being set for efl_gfx_shape_stroke_dash_set.
This commit is contained in:
parent
4bdda2db5a
commit
f5f48a8265
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue