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