diff options
Diffstat (limited to 'TOOLS/vf_dlopen/framestep.c')
-rw-r--r-- | TOOLS/vf_dlopen/framestep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/TOOLS/vf_dlopen/framestep.c b/TOOLS/vf_dlopen/framestep.c index 4e25f295ca..11c5afe349 100644 --- a/TOOLS/vf_dlopen/framestep.c +++ b/TOOLS/vf_dlopen/framestep.c @@ -90,8 +90,7 @@ int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **a if (argc != 1 && argc != 2) return -1; - framestep_data_t *framestep = malloc(sizeof(framestep_data_t)); - memset(framestep, 0, sizeof(*framestep)); + framestep_data_t *framestep = calloc(1,sizeof(framestep_data_t)); framestep->step = atoi(argv[0]); framestep->pos = (argc >= 2) ? atoi(argv[1]) : 0; |