We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db034e0 commit 6490da6Copy full SHA for 6490da6
lib/list.c
@@ -8,7 +8,7 @@
8
9
#include <config.h>
10
11
-#ident "$Id$"
+#include <stdlib.h>
12
13
#include <assert.h>
14
@@ -18,7 +18,6 @@
18
#include "string/strcmp/streq.h"
19
#include "string/strdup/xstrdup.h"
20
#include "string/strtok/astrsep2ls.h"
21
-#include "string/strtok/xastrsep2ls.h"
22
23
24
/*
@@ -198,10 +197,10 @@ comma_to_list(const char *comma)
198
197
199
members = xstrdup (comma);
200
201
- array = xastrsep2ls(members, ",", &n);
+ array = build_list(members);
+ if (array == NULL)
202
+ exit(EXIT_FAILURE);
203
- if (streq(array[n-1], ""))
204
- array[n-1] = NULL;
205
if (array[0] == NULL)
206
free(members);
207
0 commit comments