From: Ulrich Drepper Date: Mon, 3 Jan 2000 21:13:04 +0000 (+0000) Subject: (__strsep_g): Don't handle empty __S special. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0011d2ce79f9b5eccb364610f5f2ba58bbced12f;p=thirdparty%2Fglibc.git (__strsep_g): Don't handle empty __S special. --- diff --git a/string/bits/string2.h b/string/bits/string2.h index c1c27bb17a2..7f33303e642 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -1,5 +1,5 @@ /* Machine-independant string function optimizations. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -1166,7 +1166,7 @@ __STRING_INLINE char * __strsep_g (char **__s, __const char *__reject) { register char *__retval = *__s; - if (__retval == NULL || *__retval == '\0') + if (__retval == NULL) return NULL; if ((*__s = strpbrk (__retval, __reject)) != NULL) *(*__s)++ = '\0';