From 5045066574743af40f0c33a76e7df745d967f75a Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 16 Apr 2008 06:29:04 +0300 Subject: vf.c: malloc+memset -> calloc --- libmpcodecs/vf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index d5f07a0cd6..14b2fe1168 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -436,8 +436,7 @@ vf_instance_t* vf_open_plugin(struct MPOpts *opts, const vf_info_t* const* filte } if(!strcmp(filter_list[i]->name,name)) break; } - vf=malloc(sizeof(vf_instance_t)); - memset(vf,0,sizeof(vf_instance_t)); + vf = calloc(1, sizeof *vf); vf->opts = opts; vf->info=filter_list[i]; vf->next=next; -- cgit v1.2.3