From fe80d400634a3b5e38ad8d1e9b5a3146306305d2 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 15 Apr 2008 18:22:08 +0000 Subject: malloc -> calloc suggested by and ok oga@ --- parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index bb5e44c..7322bbe 100644 --- a/parse.y +++ b/parse.y @@ -513,8 +513,7 @@ parse_config(const char *filename, struct conf *xconf) { int errors = 0; - if ((conf = malloc(sizeof(struct conf))) == NULL) - return (-1); + XCALLOC(conf, struct conf); if ((file = pushfile(filename)) == NULL) { free(conf); -- cgit 1.4.1