From 9a4719d3c5e7d75fda485e3251edba0fb96b5b27 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 9 Oct 2005 04:25:04 +0000 Subject: fixed a segfault w/ the skiplist --- lib/libalpm/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') 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)); -- cgit v1.2.3-24-g4f1b