index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/list.c | 3 |
diff --git a/lib/libalpm/list.c b/lib/libalpm/list.c index 9b3b11e9..8fda583f 100644 --- a/lib/libalpm/list.c +++ b/lib/libalpm/list.c @@ -89,6 +89,9 @@ PMList* pm_list_add(PMList *list, void *data) ptr = list; if(ptr == NULL) { ptr = pm_list_new(); + if(ptr == NULL) { + return(NULL); + } } lp = pm_list_last(ptr); |