index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-01-23 01:34:58 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-01-23 01:34:58 +0000 |
commit | 4db24ca28a31d1d0d97b30b186fd5255a0ae0113 (patch) | |
tree | 0ffe8319426d9ad84a6563883c445fc0fa0d6f40 /lib/libalpm/group.c | |
parent | 2a8b835dda8cf38636cad618bc01b433ef9eefa5 (diff) |
-rw-r--r-- | lib/libalpm/group.c | 5 |
diff --git a/lib/libalpm/group.c b/lib/libalpm/group.c index e0294ccb..3ec6338c 100644 --- a/lib/libalpm/group.c +++ b/lib/libalpm/group.c @@ -36,16 +36,13 @@ pmgrp_t *_alpm_grp_new() { pmgrp_t* grp; - grp = (pmgrp_t *)malloc(sizeof(pmgrp_t)); + grp = calloc(1, sizeof(pmgrp_t)); if(grp == NULL) { _alpm_log(PM_LOG_ERROR, _("malloc failure: could not allocate %d bytes"), sizeof(pmgrp_t)); RET_ERR(PM_ERR_MEMORY, NULL); } - grp->name[0] = '\0'; - grp->packages = NULL; - return(grp); } |