aboutsummaryrefslogtreecommitdiffstats
path: root/x11/aterm/files/patch-warn_faulty_boolean
blob: 5c7d66a7d9e19e0d5bf6f2da9fef70c851c1dfb6 (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
25
26
27
28
29
30
31
diff -urNad --exclude=CVS --exclude=.svn ./src/xdefaults.c /tmp/dpep-work.T9H3hg/aterm-1.0.0/src/xdefaults.c
--- src/xdefaults.c 2005-07-31 18:31:49.000000000 +0200
+++ src/xdefaults.c 2005-07-31 18:46:26.000000000 +0200
@@ -862,8 +862,12 @@
                s = !s;
                if (s)
                Options |= (optList[entry].flag);
-               else
+               else {
+               if (my_strcasecmp(str, "FALSE"))
+                   print_error("Cannot parse value \"%s\" from resource \"%s\" as boolean",
+                       str, kw);
                Options &= ~(optList[entry].flag);
+               }
            }
            }
            break;
@@ -945,8 +949,12 @@
            s = !s;
        if (s)
            Options |= (optList[entry].flag);
-       else
+       else {
+           if (my_strcasecmp(p, "FALSE"))
+           print_error("Cannot parse value \"%s\" from resource \"%s\" as boolean",
+                   p, kw);
            Options &= ~(optList[entry].flag);
+       }
        }
    }
     }