about summary refs log tree commit diff
path: root/stdio-common/vfscanf.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-23 01:14:10 +0000
committerRoland McGrath <roland@gnu.org>1995-12-23 01:14:10 +0000
commit2114e10acb7494eddd5417c27cd52199f4fe9517 (patch)
tree30543b37265562f35608e99bb7c4a312c19c919c /stdio-common/vfscanf.c
parent975320984b9f9fa6742136447ec82e7e304d83fd (diff)
downloadglibc-2114e10acb7494eddd5417c27cd52199f4fe9517.tar.gz
glibc-2114e10acb7494eddd5417c27cd52199f4fe9517.tar.xz
glibc-2114e10acb7494eddd5417c27cd52199f4fe9517.zip
Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
        * stdio-common/vfscanf.c: Correctly handle white space skipping.
	* stdio-common/Makefile (tests): Add bug11.
	* stdio-common/bug11.c: New file.
Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>

        * stdio-common/vfscanf.c: Correctly handle white space skipping.
	* stdio-common/Makefile (tests): Add bug11.
	* stdio-common/bug11.c: New file.
Diffstat (limited to 'stdio-common/vfscanf.c')
-rw-r--r--stdio-common/vfscanf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index df68260cdd..14aa7d9748 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -233,9 +233,8 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
 	  if (c == EOF)
 	    input_error ();
 
-	  /* We saw an white space as the last character in the format
-	     string.  Now it's time to skip all leading white
-	     spaces.  */
+	  /* We saw white space char as the last character in the format
+	     string.  Now it's time to skip all leading white space.  */
 	  if (skip_space)
 	    {
 	      while (isspace (c))
@@ -243,7 +242,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
 	      skip_space = 0;
 	    }
 
-	  else if (c == fc)
+	  if (c == fc)
 	    (void) inchar ();
 	  else
 	    conv_error ();