]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__strsep_g): Don't handle empty __S special.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Jan 2000 21:13:04 +0000 (21:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Jan 2000 21:13:04 +0000 (21:13 +0000)
string/bits/string2.h

index c1c27bb17a2e10aa30b7f0d6c35596beb5e193d3..7f33303e6429b4eecd106fc4d8e04e196184fe70 100644 (file)
@@ -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 <drepper@cygnus.com>, 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';