diff options
| -rw-r--r-- | xs_regex.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ xs_list *xs_regex_split_n(const char *str, const char *rx, int count) } /* add the rest of the string */ - list = xs_list_append(list, p); + list = xs_list_append(list, xs_is_string(p) ? p : ""); regfree(&re); |