diff options
author | Dan McGee <dan@archlinux.org> | 2008-09-02 19:27:32 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-09-03 16:36:31 +0200 |
commit | da933c223eedb66c51b4a48b6ab0ce8fcb344b5c (patch) | |
tree | d6fd702a500822d35bffc9f9d7f093f5031ff2f4 /src | |
parent | 1c47500ea6d41bf9354155fca2e7c83fca368e1d (diff) | |
download | pacman-da933c223eedb66c51b4a48b6ab0ce8fcb344b5c.tar.gz pacman-da933c223eedb66c51b4a48b6ab0ce8fcb344b5c.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/conf.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |