summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorPavel Levshin <pavel@levshin.spb.ru>2013-10-31 23:47:32 +0400
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-08 15:55:05 +0100
commit9c3a83f481d549eb85666c8bd2dea44e731990ef (patch)
tree79711d898b4dead49b36a0e97b20c0d6dbc97d81 /template.c
parent08aee5f17fa7c146ebff38837f3f0eb101715d6b (diff)
downloadrsyslog-9c3a83f481d549eb85666c8bd2dea44e731990ef.tar.gz
rsyslog-9c3a83f481d549eb85666c8bd2dea44e731990ef.tar.bz2
rsyslog-9c3a83f481d549eb85666c8bd2dea44e731990ef.zip
bugfix: regression in template processing
Diffstat (limited to 'template.c')
-rw-r--r--template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.c b/template.c
index ebb3f422..e8b5e9f2 100644
--- a/template.c
+++ b/template.c
@@ -1794,7 +1794,7 @@ tplProcessCnf(struct cnfobj *o)
}
}
- if(bHaveSubtree) {
+ if(!bHaveSubtree) {
if(tplType == T_SUBTREE) {
errmsg.LogError(0, RS_RET_ERR, "template '%s' of type subtree needs "
"subtree parameter", name);