]> code.citadel.org Git - citadel.git/commitdiff
* init the pointer, so we don't use random ones here
authorWilfried Göesgens <willi@citadel.org>
Sat, 19 Dec 2009 21:45:10 +0000 (21:45 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 19 Dec 2009 21:45:10 +0000 (21:45 +0000)
webcit/subst.c

index 4b85aa1066a7fe639db69ad3e1f4d5cd96e49fce..61587492720dfc8263d732cde3895c0d4c7eab75 100644 (file)
@@ -2242,7 +2242,7 @@ void tmpl_do_boxed(StrBuf *Target, WCTemplputParams *TP)
 {
        WCTemplputParams SubTP;
 
-       StrBuf *Headline;
+       StrBuf *Headline = NULL;
        if (TP->Tokens->nParameters == 2) {
                if (TP->Tokens->Params[1]->Type == TYPE_STR) {
                        Headline = NewStrBuf();
@@ -2259,6 +2259,7 @@ void tmpl_do_boxed(StrBuf *Target, WCTemplputParams *TP)
                        Headline = NewStrBufPlain(Ch, len);
                }
        }
+       /* else TODO error? logging? */
        memcpy (&SubTP, TP, sizeof(WCTemplputParams));
        SubTP.Context = Headline;
        SubTP.Filter.ContextType = CTX_STRBUF;