summaryrefslogtreecommitdiffstats
path: root/www/cgichk/files/patch-config.c
blob: 718d8cbc04c4347c3b6da8791ce96d320fbd2412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- config.c.orig	2011-09-06 11:18:17.000000000 +0800
+++ config.c	2011-09-06 11:18:33.000000000 +0800
@@ -30,14 +30,14 @@ result_t *open_config(char *fn)
 	}
 
 	// ...try defaults, current dir...
-	if (r->F = fopen("./cgichk.cfg", "rb"))
+	if ((r->F = fopen("./cgichk.cfg", "rb")))
 	{
 		resultfile = (char *) strdup("./cgichk.cfg");
 		return r;
 	}
 
 	// ...and then config dir
-	if (r->F = fopen(CONFIG_PATH, "rb"))
+	if ((r->F = fopen(CONFIG_PATH, "rb")))
 	{
 		resultfile = (char *) strdup(CONFIG_PATH);
 		return r;
OpenPOWER on IntegriCloud