* do the right initialization for the stat struct in the summary too.
authorWilfried Göesgens <willi@citadel.org>
Tue, 8 Sep 2009 07:06:38 +0000 (07:06 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 8 Sep 2009 07:06:38 +0000 (07:06 +0000)
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);