newlib: vf[w]scanf: Only return from a single point to simplify cleanup
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
f636eae26f
commit
2e328edee4
|
@ -1623,8 +1623,7 @@ input_failure:
|
|||
should have been set prior to here. On EOF failure (including
|
||||
invalid format string), return EOF if no matches yet, else number
|
||||
of matches made prior to failure. */
|
||||
_newlib_flockfile_exit (fp);
|
||||
return nassigned && !(fp->_flags & __SERR) ? nassigned : EOF;
|
||||
nassigned = nassigned && !(fp->_flags & __SERR) ? nassigned : EOF;
|
||||
match_failure:
|
||||
all_done:
|
||||
/* Return number of matches, which can be 0 on match failure. */
|
||||
|
|
|
@ -1469,8 +1469,7 @@ input_failure:
|
|||
should have been set prior to here. On EOF failure (including
|
||||
invalid format string), return EOF if no matches yet, else number
|
||||
of matches made prior to failure. */
|
||||
_newlib_flockfile_exit (fp);
|
||||
return nassigned && !(fp->_flags & __SERR) ? nassigned : EOF;
|
||||
nassigned = nassigned && !(fp->_flags & __SERR) ? nassigned : EOF;
|
||||
match_failure:
|
||||
all_done:
|
||||
/* Return number of matches, which can be 0 on match failure. */
|
||||
|
|
Loading…
Reference in New Issue