From bca4219dd0c8c1896a19ed5544b40656f5078b1b Mon Sep 17 00:00:00 2001 From: Bruno George de Moraes Date: Thu, 4 Sep 2014 20:44:51 -0300 Subject: malloc+memset(0) to calloc Signed-off-by: wm4 --- TOOLS/vf_dlopen/tile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'TOOLS/vf_dlopen/tile.c') diff --git a/TOOLS/vf_dlopen/tile.c b/TOOLS/vf_dlopen/tile.c index 57355bbc4c..bf5aeea26f 100644 --- a/TOOLS/vf_dlopen/tile.c +++ b/TOOLS/vf_dlopen/tile.c @@ -150,8 +150,7 @@ int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **a if (argc != 2) return -1; - tile_data_t *tile = malloc(sizeof(tile_data_t)); - memset(tile, 0, sizeof(*tile)); + tile_data_t *tile = calloc(1,sizeof(tile_data_t)); tile->cols = atoi(argv[0]); tile->rows = atoi(argv[1]); -- cgit v1.2.3