From 523dacbf093a836e18649e6e40454e22276ef6e7 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 27 Nov 2012 00:53:18 +0100 Subject: [PATCH] SUBST: context rework: some more places for memset 0 found... --- webcit/smtpqueue.c | 1 + webcit/subst.c | 2 ++ 2 files changed, 3 insertions(+) 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; -- 2.30.2