]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Correct handling of separators after last non-separator.
authorUlrich Drepper <drepper@redhat.com>
Fri, 13 Mar 1998 17:41:43 +0000 (17:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 13 Mar 1998 17:41:43 +0000 (17:41 +0000)
sysdeps/generic/strsep.c

index 15c5891044d69bdc18f42e02bc76237f42458eef..22a27528ef15a6d4aac18fdca133cdf174631608 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1993, 1996, 1998 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@ __strsep (char **stringp, const char *delim)
   char *begin, *end;
 
   begin = *stringp;
-  if (! begin || *begin == '\0')
+  if (begin == NULL)
     return NULL;
 
   /* Find the end of the token.  */