summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-10-09 04:25:04 +0000
committerJudd Vinet <judd@archlinux.org>2005-10-09 04:25:04 +0000
commit9a4719d3c5e7d75fda485e3251edba0fb96b5b27 (patch)
tree0469027ce92c651b555940501f9d90535d5853ee /lib
parent995057bcdab99a581af7a6a10e58ac5f41a83275 (diff)
downloadpacman-9a4719d3c5e7d75fda485e3251edba0fb96b5b27.tar.xz
fixed a segfault w/ the skiplist
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 6fcc6442..e5f9263b 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -191,7 +191,7 @@ error:
int add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data)
{
PMList *lp;
- PMList *skiplist;
+ PMList *skiplist = NULL;
ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
ASSERT(db != NULL, RET_ERR(PM_ERR_DB_NULL, -1));