* fix some warnings just visible with -o2
[citadel.git] / webcit / mainmenu.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);
 }