mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
in loop to look for conversion specifier to avoid testing of wrong errno value. * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a. * stdio-common/bug18a.c: New file. * stdio-common/bug19.c: New file. * stdio-common/bug19a.c: New file.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1997-2004, 2006, 2007 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 1997-2003, 2004, 2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -166,12 +166,7 @@ _IO_str_underflow (fp)
|
||||
if (fp->_IO_read_ptr < fp->_IO_read_end)
|
||||
return *((unsigned char *) fp->_IO_read_ptr);
|
||||
else
|
||||
{
|
||||
/* We have to reset errno since callers check for errno being
|
||||
EINTR and there has been no such problem here. */
|
||||
__set_errno (0);
|
||||
return EOF;
|
||||
}
|
||||
return EOF;
|
||||
}
|
||||
INTDEF(_IO_str_underflow)
|
||||
|
||||
|
Reference in New Issue
Block a user