summaryrefslogtreecommitdiffstats
path: root/TOOLS/vf_dlopen/ildetect.c
diff options
context:
space:
mode:
authorBruno George de Moraes <bruno.gm0@gmail.com>2014-09-04 20:44:51 -0300
committerwm4 <wm4@nowhere>2014-09-05 01:59:11 +0200
commitbca4219dd0c8c1896a19ed5544b40656f5078b1b (patch)
treed01865e2652ca101d6691cb75cae0542f2485bb0 /TOOLS/vf_dlopen/ildetect.c
parenta7d737a6986446ba921690cc985468534ed8caab (diff)
downloadmpv-bca4219dd0c8c1896a19ed5544b40656f5078b1b.tar.bz2
mpv-bca4219dd0c8c1896a19ed5544b40656f5078b1b.tar.xz
malloc+memset(0) to calloc
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'TOOLS/vf_dlopen/ildetect.c')
-rw-r--r--TOOLS/vf_dlopen/ildetect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/TOOLS/vf_dlopen/ildetect.c b/TOOLS/vf_dlopen/ildetect.c
index ef4e45f013..d2f3d5bde5 100644
--- a/TOOLS/vf_dlopen/ildetect.c
+++ b/TOOLS/vf_dlopen/ildetect.c
@@ -267,8 +267,7 @@ int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **a
(void) argc;
(void) argv;
- ildetect_data_t *il = malloc(sizeof(ildetect_data_t));
- memset(il, 0, sizeof(*il));
+ ildetect_data_t *il = calloc(1,sizeof(ildetect_data_t));
#define A(i,d) ((argc>(i) && *argv[i]) ? atof(argv[i]) : (d))
il->method = A(0, 0);