Fixes for use outside glibc.
authorUlrich Drepper <drepper@redhat.com>
Wed, 26 Jul 2000 16:04:48 +0000 (16:04 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 26 Jul 2000 16:04:48 +0000 (16:04 +0000)
posix/fnmatch_loop.c

index b7baa7b..38cb8f1 100644 (file)
@@ -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