summaryrefslogtreecommitdiff
path: root/sysdeps/i386/strtok.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-23 22:34:22 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-23 22:34:22 +0000
commitef5166a66965fbbe024746d7a5fcefe424f4d8b7 (patch)
treeba0d607eea415adc73966ad77bc6886c6dffe339 /sysdeps/i386/strtok.S
parentd436a9f71094ec7fc8e946058af20a1c167df791 (diff)
Update.
2001-02-23 Ulrich Drepper <drepper@redhat.com> * sysdeps/i386/strtok.S: Continue to return NULL after the first time this happened.
Diffstat (limited to 'sysdeps/i386/strtok.S')
-rw-r--r--sysdeps/i386/strtok.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/i386/strtok.S b/sysdeps/i386/strtok.S
index ff8980a924..19af2b1c9e 100644
--- a/sysdeps/i386/strtok.S
+++ b/sysdeps/i386/strtok.S
@@ -1,6 +1,6 @@
/* strtok (str, delim) -- Return next DELIM separated token from STR.
For Intel 80x86, x>=3.
- Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -113,6 +113,8 @@ L(0): movl SAVE_PTR, %edx
we have to take care for PIC code. */
movl SAVE_PTR, %edx
#endif
+ testl %edx, %edx
+ jz L(returnNULL)
L(1):
/* First we create a table with flags for all possible characters.