Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/list.c')
-rw-r--r--lib/libalpm/list.c3
1 files changed, 3 insertions, 0 deletions
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);