Commit 56e5dae7 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

android/surface: use calloc

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent cd3ed403
...@@ -233,7 +233,7 @@ static int Open(vlc_object_t *p_this) ...@@ -233,7 +233,7 @@ static int Open(vlc_object_t *p_this)
sys->fmt = fmt; sys->fmt = fmt;
/* Create the associated picture */ /* Create the associated picture */
picture_sys_t *picsys = malloc(sizeof(*picsys)); picture_sys_t *picsys = calloc(1, sizeof(picture_sys_t));
if (unlikely(picsys == NULL)) if (unlikely(picsys == NULL))
goto error; goto error;
picsys->sys = sys; picsys->sys = sys;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment