projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db4fc4
)
Catch Z-BUS errors in templates.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 9 May 2015 13:23:18 +0000
(15:23 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 9 May 2015 13:23:18 +0000
(15:23 +0200)
webcit/subst.c
patch
|
blob
|
history
diff --git
a/webcit/subst.c
b/webcit/subst.c
index 586f4f8c646df6b156107b9b25451c2892fed9e0..83540918a1e7c45f9dfadfeb06933561804d3cc8 100644
(file)
--- 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;