index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-01-01 19:00:23 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-02 21:48:59 +1000 |
commit | 8da9be0955fc759f43c40dab8985f9d17ac8462a (patch) | |
tree | e8d58c84e3175347677e6f77ba485015436447a2 /lib/libalpm/db.c | |
parent | 4060c5c77f41f69b26597dcc6d9285cf546000cf (diff) |
-rw-r--r-- | lib/libalpm/db.c | 2 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index bfc80ac8..ebcd1f89 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -565,7 +565,7 @@ alpm_list_t *_alpm_db_get_pkgcache(alpm_db_t *db) /* "duplicate" pkg then add it to pkgcache */ int _alpm_db_add_pkgincache(alpm_db_t *db, alpm_pkg_t *pkg) { - alpm_pkg_t *newpkg; + alpm_pkg_t *newpkg = NULL; if(db == NULL || pkg == NULL || !(db->status & DB_STATUS_PKGCACHE)) { return -1; |