From 0e79f5ea3401504f7745e8985553c77e89b93403 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 9 Jun 2009 20:35:39 +0000 Subject: [PATCH] * fix some warnings just visible with -o2 --- webcit/mainmenu.c | 5 +++-- webcit/subst.c | 1 + webcit/webserver.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index 6fcc5499f..3959e27a6 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -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("Enter another command
\n"); wprintf("Return to menu\n"); do_template("endbox", NULL); + FreeStrBuf(&Buf); wDumpContent(1); } diff --git a/webcit/subst.c b/webcit/subst.c index 8b69b26e0..3c9385f59 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -107,6 +107,7 @@ const char *CtxNames[] = { "Context ROOMS", "Context FLOORS", "Context ITERATE", + "Context ICAL", "Context UNKNOWN" }; diff --git a/webcit/webserver.c b/webcit/webserver.c index 3bd251818..6d5d5c3da 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -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; -- 2.30.2