diff options
author | Dan McGee <dan@archlinux.org> | 2008-09-02 12:27:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-09-03 09:36:31 -0500 |
commit | da933c223eedb66c51b4a48b6ab0ce8fcb344b5c (patch) | |
tree | d6fd702a500822d35bffc9f9d7f093f5031ff2f4 /lib/libalpm/handle.c | |
parent | 1c47500ea6d41bf9354155fca2e7c83fca368e1d (diff) | |
download | 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 'lib/libalpm/handle.c')
-rw-r--r-- | lib/libalpm/handle.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index af1cc78b..7dc01223 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -48,16 +48,7 @@ pmhandle_t *_alpm_handle_new() ALPM_LOG_FUNC; CALLOC(handle, 1, sizeof(pmhandle_t), RET_ERR(PM_ERR_MEMORY, NULL)); - handle->lckfd = -1; - handle->logstream = NULL; - - handle->root = NULL; - handle->dbpath = NULL; - handle->cachedirs = NULL; - handle->lockfile = NULL; - handle->logfile = NULL; - handle->usedelta = 0; return(handle); } |