diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-16 06:29:04 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:41:06 +0300 |
commit | 5045066574743af40f0c33a76e7df745d967f75a (patch) | |
tree | 8626a2e70efb7dd087a70170da009b11020e11c9 | |
parent | 9b06b5ed85ec28097428e7fe35631ce3a04685b5 (diff) | |
download | mpv-5045066574743af40f0c33a76e7df745d967f75a.tar.bz2 mpv-5045066574743af40f0c33a76e7df745d967f75a.tar.xz |
vf.c: malloc+memset -> calloc
-rw-r--r-- | libmpcodecs/vf.c | 3 |
1 files changed, 1 insertions, 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; |