diff options
Diffstat (limited to 'string/bits/string2.h')
-rw-r--r-- | string/bits/string2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h index 45c6112..3104f94 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -840,7 +840,7 @@ __strsep_g (char **__s, __const char *__reject) register char *__retval = *__s; if (__retval == NULL || *__retval == '\0') return NULL; - if ((*__s = strpbrk (__retval, __reject)) != '\0') + if ((*__s = strpbrk (__retval, __reject)) != NULL) *(*__s)++ = '\0'; return __retval; } |