commit c83abd5afb4c0fc066a01e0ff81c66d9f363bc6b
parent 1c8836b2e1068874b0a58ee7f3cd2060d43ab139
Author: Joris Vink <joris@coders.se>
Date: Sat, 13 Feb 2016 15:27:02 +0100
If ele is 0 return 0 instead of fataling.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils.c b/src/utils.c
@@ -210,7 +210,7 @@ kore_split_string(char *input, char *delim, char **out, size_t ele)
char **ap;
if (ele == 0)
- fatal("kore_split_string: ele == 0");
+ return (0);
count = 0;
for (ap = out; ap < &out[ele - 1] &&