index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2014-03-08 16:58:30 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-03-08 16:58:30 +1000 |
commit | ffdc2c5396903ec0dd2b7ab4623f7f7674827885 (patch) | |
tree | 1934e4c5234940b0694ef9f70ef71f0041d1f6d0 /lib/libalpm/sync.c | |
parent | f3a280bc67c0f2e7b57f3772599f989b0df4d945 (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 3 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 7e40d986..a025b68a 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1135,8 +1135,9 @@ static int check_validity(alpm_handle_t *handle, if(_alpm_pkg_validate_internal(handle, v.path, v.pkg, v.level, &v.siglist, &v.validation) == -1) { + struct validity *invalid; v.error = handle->pm_errno; - struct validity *invalid = malloc(sizeof(struct validity)); + MALLOC(invalid, sizeof(struct validity), return -1); memcpy(invalid, &v, sizeof(struct validity)); errors = alpm_list_add(errors, invalid); } else { |