From d8371057cdda0041e3fecc200e4f4a3a473050b9 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 9 May 2015 15:23:18 +0200 Subject: [PATCH] Catch Z-BUS errors in templates. --- webcit/subst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/webcit/subst.c b/webcit/subst.c index 586f4f8c6..83540918a 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -679,6 +679,7 @@ void StrBufAppendTemplate(StrBuf *Target, char EscapeAs = ' '; if ((FormatTypeIndex < TP->Tokens->nParameters) && + (TP->Tokens->Params[FormatTypeIndex] != NULL) && (TP->Tokens->Params[FormatTypeIndex]->Type == TYPE_STR) && (TP->Tokens->Params[FormatTypeIndex]->len >= 1)) { pFmt = TP->Tokens->Params[FormatTypeIndex]->Start; -- 2.30.2