From: Wilfried Goesgens Date: Mon, 26 Nov 2012 23:53:18 +0000 (+0100) Subject: SUBST: context rework: some more places for memset 0 found... X-Git-Tag: v8.20~183 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=523dacbf093a836e18649e6e40454e22276ef6e7 SUBST: context rework: some more places for memset 0 found... --- diff --git a/webcit/smtpqueue.c b/webcit/smtpqueue.c index 350a201f0..ff9e9dc8e 100644 --- a/webcit/smtpqueue.c +++ b/webcit/smtpqueue.c @@ -386,6 +386,7 @@ int qview_RenderView_or_Tail(SharedMessageStatus *Stat, wcsession *WCC = WC; WCTemplputParams SubTP; + memset(&SubTP, 0, sizeof(WCTemplputParams)); if (yesbstr("ListOnly")) DoTemplate(HKEY("view_mailq_footer_listonly"),NULL, &SubTP); else diff --git a/webcit/subst.c b/webcit/subst.c index c3b094874..130b1a12a 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -1804,6 +1804,8 @@ const StrBuf *ProcessTemplate(WCTemplate *Tmpl, StrBuf *Target, WCTemplputParams WCTemplputParams TP; WCTemplputParams *TPtr = &TP; + memset(TPtr, 0, sizeof(WCTemplputParams)); + memcpy(&TP.Filter, &CallingTP->Filter, sizeof(ContextFilter)); TP.Context = CallingTP->Context;