aboutsummaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/str.c')
-rw-r--r--lib/str.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/str.c b/lib/str.c
index 0e2f90e..55e1c79 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -206,6 +206,7 @@ char** split(char *_sptr, const char* delim)
// No delimiter, but the string was not NULL, so return the original string
if (split_alloc == 0) {
result[0] = sptr;
+ result[1] = NULL;
return result;
}