If ele is 0 return 0 instead of fataling.

This commit is contained in:
Joris Vink 2016-02-13 15:27:02 +01:00
parent 1c8836b2e1
commit c83abd5afb
1 changed files with 1 additions and 1 deletions

View File

@ -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] &&