From 763931c87af71ac7920ff358d0ba585d3058b0b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 16 Jan 2010 14:11:05 +0000 Subject: [PATCH] * memset(0) the folders, else we might struggle... --- webcit/auth.c | 1 + webcit/pushemail.c | 1 + 2 files changed, 2 insertions(+) diff --git a/webcit/auth.c b/webcit/auth.c index 185eba443..2ed2413bd 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -747,6 +747,7 @@ void display_reg(int during_login) long vcard_msgnum; Buf = NewStrBuf(); + memset(&Room, 0, sizeof(folder)); if (goto_config_room(Buf, &Room) != 0) { lprintf(9, "display_reg() exiting because goto_config_room() failed\n"); if (during_login) { diff --git a/webcit/pushemail.c b/webcit/pushemail.c index 81b13fd67..482ee8a58 100644 --- a/webcit/pushemail.c +++ b/webcit/pushemail.c @@ -20,6 +20,7 @@ void display_pushemail(void) /* Find any existing settings*/ Buf = NewStrBuf(); + memset(&Room, 0, sizeof(folder)); if (goto_config_room(Buf, &Room) == 0) { int msgnum = 0; serv_puts("MSGS ALL|0|1"); -- 2.30.2