Blame SOURCES/0093-lib-process-NULL-arg-as-an-empty-list-in-parse_list.patch

562801
From 3fbf503887d6f81b8e05bd9ff09f3f205c6f4eae Mon Sep 17 00:00:00 2001
562801
From: Jakub Filak <jfilak@redhat.com>
562801
Date: Thu, 2 Oct 2014 10:36:25 +0200
562801
Subject: [LIBREPORT PATCH 93/93] lib: process NULL arg as an empty list in
562801
 parse_list()
562801
562801
NULL CSV string means empty list
562801
562801
Related to rhbz#1139987
562801
562801
Signed-off-by: Jakub Filak <jfilak@redhat.com>
562801
---
562801
 src/lib/glib_support.c | 3 +++
562801
 1 file changed, 3 insertions(+)
562801
562801
diff --git a/src/lib/glib_support.c b/src/lib/glib_support.c
562801
index d98c690..6276e9d 100644
562801
--- a/src/lib/glib_support.c
562801
+++ b/src/lib/glib_support.c
562801
@@ -60,6 +60,9 @@ void glib_init(void)
562801
  */
562801
 GList *parse_list(const char* list)
562801
 {
562801
+    if (list == NULL)
562801
+        return NULL;
562801
+
562801
     GList *l = NULL;
562801
 
562801
     char *saved_ptr = NULL;
562801
-- 
562801
1.8.3.1
562801