index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-10-29 01:00:52 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-29 01:00:52 -0500 |
commit | cc754bc6e3be0f37ca0eaca4b6b90f033433fb1a (patch) | |
tree | a9940053625e4b4e9b5d345eb1ac441a911f6efa /lib/libalpm/delta.c | |
parent | fe3a461703a5d90937c0c6f1ce0c3d802c0f8630 (diff) |
-rw-r--r-- | lib/libalpm/delta.c | 3 |
diff --git a/lib/libalpm/delta.c b/lib/libalpm/delta.c index 00ed46cb..626ffb31 100644 --- a/lib/libalpm/delta.c +++ b/lib/libalpm/delta.c @@ -26,6 +26,7 @@ /* libalpm */ #include "delta.h" +#include "error.h" #include "util.h" #include "log.h" #include "alpm_list.h" @@ -235,7 +236,7 @@ pmdelta_t *_alpm_delta_parse(char *line) pmdelta_t *delta; char *tmp = line, *tmp2; - delta = malloc(sizeof(pmdelta_t)); + CALLOC(delta, 1, sizeof(pmdelta_t), RET_ERR(PM_ERR_MEMORY, NULL)); tmp2 = tmp; tmp = strchr(tmp, ' '); |