* fix some warnings just visible with -o2
authorWilfried Göesgens <willi@citadel.org>
Tue, 9 Jun 2009 20:35:39 +0000 (20:35 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 9 Jun 2009 20:35:39 +0000 (20:35 +0000)
webcit/mainmenu.c
webcit/subst.c
webcit/webserver.c

index 6fcc5499f7b936927f8d9fc7c5f4142c85afe1c5..3959e27a65624d4039e9e2e47be6be23e5361619 100644 (file)
@@ -91,9 +91,9 @@ void do_generic(void)
        }
 
        output_headers(1, 1, 0, 0, 0, 0);
-
+       Buf = NewStrBuf();
        serv_puts(bstr("g_cmd"));
-
+       StrBuf_ServGetln(Buf);
        svput("BOXTITLE", WCS_STRING, _("Server command results"));
        do_template("beginboxx", NULL);
 
@@ -143,6 +143,7 @@ void do_generic(void)
        wprintf("<a href=\"display_generic\">Enter another command</a><br />\n");
        wprintf("<a href=\"display_advanced\">Return to menu</a>\n");
        do_template("endbox", NULL);
+       FreeStrBuf(&Buf);
        wDumpContent(1);
 }
 
index 8b69b26e000faae3d443f222e6cbf59a2f5c2880..3c9385f5948df88e02f8d1eb43f62dbe6ff8d4c9 100644 (file)
@@ -107,6 +107,7 @@ const char *CtxNames[]  = {
        "Context ROOMS",
        "Context FLOORS",
        "Context ITERATE",
+       "Context ICAL",
        "Context UNKNOWN"
 };
 
index 3bd25181843369611e13cba7cadc2c6602d9c2ba..6d5d5c3da766f488c634205450898ec3865bfaa6 100644 (file)
@@ -328,7 +328,7 @@ int main(int argc, char **argv)
        char webcitdir[PATH_MAX] = DATADIR;
        char *pidfile = NULL;
        char *hdir;
-       const char *basedir;
+       const char *basedir = NULL;
 #ifdef ENABLE_NLS
        char *locale = NULL;
        char *mo = NULL;