about summary refs log tree commit diff
path: root/sysdeps/generic/strtok.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/strtok.c')
-rw-r--r--sysdeps/generic/strtok.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/generic/strtok.c b/sysdeps/generic/strtok.c
index 4f89efa6f0..1e96fec01f 100644
--- a/sysdeps/generic/strtok.c
+++ b/sysdeps/generic/strtok.c
@@ -43,10 +43,7 @@ strtok (s, delim)
   /* Scan leading delimiters.  */
   s += strspn (s, delim);
   if (*s == '\0')
-    {
-      olds = NULL;
-      return NULL;
-    }
+    return NULL;
 
   /* Find the end of the token.  */
   token = s;