]> code.citadel.org Git - citadel.git/blobdiff - webcit/summary.c
* do the right initialization for the stat struct in the summary too.
[citadel.git] / webcit / summary.c
index fb34a85837a4fa08f84fd1a6c091933ceb891750..925d42693035365e1d1398446a79fcd21ddad028 100644 (file)
@@ -88,6 +88,10 @@ void tasks_section(void) {
        SharedMessageStatus Stat;
 
        memset(&Stat, 0, sizeof(SharedMessageStatus));
+       Stat.maxload = 10000;
+       Stat.lowest_found = (-1);
+       Stat.highest_found = (-1);
+
        Buf = NewStrBufPlain(HKEY("_TASKS_"));
        gotoroom(Buf);
        FreeStrBuf(&Buf);
@@ -133,6 +137,10 @@ void calendar_section(void) {
        SharedMessageStatus Stat;
 
        memset(&Stat, 0, sizeof(SharedMessageStatus));
+       Stat.maxload = 10000;
+       Stat.lowest_found = (-1);
+       Stat.highest_found = (-1);
+       
        Buf = NewStrBufPlain(HKEY("_CALENDAR_"));
        gotoroom(Buf);
        FreeStrBuf(&Buf);