SUBST: context rework: some more places for memset 0 found...
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 26 Nov 2012 23:53:18 +0000 (00:53 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 26 Nov 2012 23:53:18 +0000 (00:53 +0100)
webcit/smtpqueue.c
webcit/subst.c

index 350a201f03e3edf781159baf610e06c9972f93f4..ff9e9dc8e536ae677b6831b09a780db6c5f4ccaf 100644 (file)
@@ -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
index c3b094874778772db7758442a2e70036e6c8cf2b..130b1a12ac61bd7e2811d485d7775c11527f4803 100644 (file)
@@ -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;