about summary refs log tree commit diff
path: root/posix/fnmatch_loop.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-26 16:04:48 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-26 16:04:48 +0000
commitc1ac11df763c49e7e9afb2993b172c0d575edd05 (patch)
treefbbadb862df22e842f139f51f41a3c9ff726aeb8 /posix/fnmatch_loop.c
parent9881cbf80a73a85ef92e62bf7a40dbf4cf8e163f (diff)
downloadglibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.tar.gz
glibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.tar.xz
glibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.zip
Fixes for use outside glibc.
Diffstat (limited to 'posix/fnmatch_loop.c')
-rw-r--r--posix/fnmatch_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
index b7baa7be24..38cb8f1d76 100644
--- a/posix/fnmatch_loop.c
+++ b/posix/fnmatch_loop.c
@@ -415,10 +415,11 @@ FCT (pattern, string, no_leading_period, flags)
 		  return FNM_NOMATCH;
 		else
 		  {
-		    int is_seqval = 0;
 		    int is_range = 0;
 
 #ifdef _LIBC
+		    int is_seqval = 0;
+
 		    if (c == L('[') && *p == L('.'))
 		      {
 			uint32_t nrules =
@@ -850,7 +851,7 @@ FCT (pattern, string, no_leading_period, flags)
 			  return FNM_NOMATCH;
 
 			/* It is a range.  */
-			if (cold <= fc && fc <= c)
+			if (cold <= fn && fn <= c)
 			  goto matched;
 #endif