aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/strtok.S
diff options
context:
space:
mode:
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.