]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* fix some warnings just visible with -o2
[citadel.git] / webcit / webserver.c
index f72910f114db0e835f9f79a76bb1301ab064f31f..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;
@@ -627,7 +627,7 @@ void worker_entry(void)
 
        memset(&Hdr, 0, sizeof(ParsedHttpHdrs));
        Hdr.HR.eReqType = eGET;
-
+       http_new_modules(&Hdr); 
        tv.tv_sec = 0;
        tv.tv_usec = 10000;
        FD_ZERO(&readset);
@@ -676,6 +676,7 @@ void worker_entry(void)
                        end_critical_section(S_SHUTDOWN);
                        if (shutdown == 1)
                        {/* we're the one to cleanup the mess. */
+                               http_destroy_modules(&Hdr);
                                lprintf(2, "I'm master shutdown: tagging sessions to be killed.\n");
                                shutdown_sessions();
                                lprintf(2, "master shutdown: waiting for others\n");