about summary refs log tree commit diff
path: root/string/bits/string2.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-14 09:27:24 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-14 09:27:24 +0000
commit76fbcfdd66556dfe8e813cda50ac28071d0da573 (patch)
tree24f1c4235a09ebbc502bd0d281b1475580c085aa /string/bits/string2.h
parent14c44e2ec42a3c973e268add83a11e3e5fb0b80c (diff)
downloadglibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.tar.gz
glibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.tar.xz
glibc-76fbcfdd66556dfe8e813cda50ac28071d0da573.zip
Update.
1998-03-14 00:52  Tim Waugh  <tim@cyberelk.demon.co.uk>

	* posix/wordexp.c (parse_param): Perform field-splitting after
	expanding positional parameter.

	* posix/wordexp-tst.sh: Test that field-splitting is performed
	after expanding positional parameter.

	* posix/wordexp.c (parse_param): Fixed memory leak in
	field-splitting after parameter expansion.

1998-03-14  Ulrich Drepper  <drepper@cygnus.com>

	* locale/programs/linereader.c (lr_token): Return EOF token at
	EOF.
	(get_toplvl_escape): Correctly terminate loop at EOF.
	Patch by Cristian Gafton <gafton@redhat.com>.
Diffstat (limited to 'string/bits/string2.h')
-rw-r--r--string/bits/string2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index 45c6112b55..3104f949ba 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -840,7 +840,7 @@ __strsep_g (char **__s, __const char *__reject)
   register char *__retval = *__s;
   if (__retval == NULL || *__retval == '\0')
     return NULL;
-  if ((*__s = strpbrk (__retval, __reject)) != '\0')
+  if ((*__s = strpbrk (__retval, __reject)) != NULL)
     *(*__s)++ = '\0';
   return __retval;
 }