From ef5166a66965fbbe024746d7a5fcefe424f4d8b7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 23 Feb 2001 22:34:22 +0000 Subject: Update. 2001-02-23 Ulrich Drepper * sysdeps/i386/strtok.S: Continue to return NULL after the first time this happened. --- sysdeps/i386/strtok.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps/i386/strtok.S') 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 , 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. -- cgit 1.4.1