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

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