Fix bit flag operations for debug parameter.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 29 Dec 2014 14:29:06 +0000 (15:29 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 29 Dec 2014 14:29:06 +0000 (15:29 +0100)
webcit/webserver.c

index 509d128f71e4806c994ce920b37a4d1bd27f885e..0f299bfc77f521c1121a3c7dc1dd01cc4115c507 100644 (file)
@@ -149,8 +149,8 @@ int main(int argc, char **argv)
                        break;
                case 'T':
                        LoadTemplates = atoi(optarg);
-                       dbg_analyze_msg = (LoadTemplates && (1<<1)) != 0;
-                       dbg_backtrace_template_errors = (LoadTemplates && (1<<2)) != 0;
+                       dbg_analyze_msg = (LoadTemplates & (1<<1)) != 0;
+                       dbg_backtrace_template_errors = (LoadTemplates & (1<<2)) != 0;
                        break;
                case 'Z':
                        DisableGzip = 1;