* fix multiple compiler warnings...
[citadel.git] / webcit / webserver.c
index 12a2ba71c210ac5d23eb8f5c926a61078f319a3c..6e3aef7ac746f95347b9f340f0903145a781149e 100644 (file)
@@ -109,9 +109,11 @@ void load_redirs(char *filename) {
        }
 
        while (fgets(buf, sizeof buf, fp) != NULL) {
+               char *ch;
+
                buf[strlen(buf)-1] = 0;
 
-               char *ch = strchr(buf, '#');
+               ch = strchr(buf, '#');
                if (ch) strcpy(ch, "");
                striplt(buf);
                if (!IsEmptyStr(buf)) {