mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 06:15:08 -05:00
fixed a segfault w/ the skiplist
This commit is contained in:
parent
995057bcda
commit
9a4719d3c5
@ -191,7 +191,7 @@ error:
|
|||||||
int add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data)
|
int add_prepare(pmtrans_t *trans, pmdb_t *db, PMList **data)
|
||||||
{
|
{
|
||||||
PMList *lp;
|
PMList *lp;
|
||||||
PMList *skiplist;
|
PMList *skiplist = NULL;
|
||||||
|
|
||||||
ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
|
ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
|
||||||
ASSERT(db != NULL, RET_ERR(PM_ERR_DB_NULL, -1));
|
ASSERT(db != NULL, RET_ERR(PM_ERR_DB_NULL, -1));
|
||||||
|
Loading…
Reference in New Issue
Block a user