summaryrefslogtreecommitdiff
path: root/sysutils/ods2/files/patch-direct.c
blob: c5109a408317de23b098dbc33702a7da1355c345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- direct.c.orig	2001-08-31 18:01:07 UTC
+++ direct.c
@@ -136,12 +136,15 @@ int name_match(char *spec,int spec_len,char *dirent,in
         register char sch = *name;
         if (sch != '*') {
             register char ech = *entry;
-                if (sch != ech) if (toupper(sch) != toupper(ech))
-                    if (sch == '%') {
-                        percent = MAT_NE;
-                    } else {
-                        break;
-                    }
+                if (sch != ech) {
+                   if (toupper(sch) != toupper(ech)) {
+                      if (sch == '%') {
+                          percent = MAT_NE;
+                      } else {
+                          break;
+                      }
+                   }
+                }
         } else {
             break;
         }