diff options
Diffstat (limited to 'source/fitz/string.c')
-rw-r--r-- | source/fitz/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/string.c b/source/fitz/string.c index b29cdbdc..1442b205 100644 --- a/source/fitz/string.c +++ b/source/fitz/string.c @@ -5,7 +5,7 @@ fz_strsep(char **stringp, const char *delim) { char *ret = *stringp; if (!ret) return NULL; - if ((*stringp = strpbrk(*stringp, delim))) + if ((*stringp = strpbrk(*stringp, delim)) != NULL) *((*stringp)++) = '\0'; return ret; } |