From da933c223eedb66c51b4a48b6ab0ce8fcb344b5c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 2 Sep 2008 12:27:32 -0500 Subject: Remove unnecessary initialization in new functions We don't need to zero things out, we are already using calloc for this purpose. Signed-off-by: Dan McGee --- src/pacman/conf.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 48c927bf..5853facc 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -44,10 +44,6 @@ config_t *config_new(void) newconfig->logmask = PM_LOG_ERROR | PM_LOG_WARNING; /* CONFFILE is defined at compile-time */ newconfig->configfile = strdup(CONFFILE); - newconfig->rootdir = NULL; - newconfig->dbpath = NULL; - newconfig->logfile = NULL; - newconfig->syncfirst = NULL; return(newconfig); } -- cgit v1.2.3-70-g09d2