Eliminate yet one function call when locale not used

This commit is contained in:
Andrey A. Chernov 1997-04-04 19:07:02 +00:00
parent 5058254947
commit ed2bf9a999
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24631

View File

@ -39,7 +39,7 @@
static char sccsid[] = "@(#)vfscanf.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
"$Id: vfscanf.c,v 1.8 1997/03/03 17:53:02 bde Exp $";
"$Id: vfscanf.c,v 1.9 1997/04/04 18:28:38 ache Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@ -730,8 +730,9 @@ __sccl(tab, fmt)
*/
n = *fmt;
if (n == ']'
|| (__collate_load_error && n < c)
|| __collate_range_cmp (n, c) < 0
|| (__collate_load_error ? n < c :
__collate_range_cmp (n, c) < 0
)
) {
c = '-';
break; /* resume the for(;;) */