You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
758 B

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