index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-08-19 11:06:55 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-19 11:09:57 -0500 |
commit | 6d544984f2418ea34caab4c433580487b760362a (patch) | |
tree | cf0510b97a6495587c87598a70bf8761189f5c32 /lib/libalpm/db.c | |
parent | 9934b3bd345011eef6a96249d8d90de594c04cd0 (diff) |
-rw-r--r-- | lib/libalpm/db.c | 3 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 77bdf98c..33282b87 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -553,8 +553,7 @@ int _alpm_db_add_pkgincache(alpm_db_t *db, alpm_pkg_t *pkg) return -1; } - newpkg = _alpm_pkg_dup(pkg); - if(newpkg == NULL) { + if(_alpm_pkg_dup(pkg, &newpkg)) { return -1; } |