diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-04-04 19:07:02 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-04-04 19:07:02 +0000 |
| commit | ed2bf9a99915f69dd0cd59defe6e0974c974a0f5 (patch) | |
| tree | b5c618cbb18d2a1821be0ddc10ce1b57db20da82 | |
| parent | 50582549473d6555e7f0537f89ded482cd01b2b5 (diff) | |
Notes
| -rw-r--r-- | lib/libc/stdio/vfscanf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index cb66eb95591c..14d7a3b7ab56 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -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 @@ doswitch: */ 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(;;) */ |
