summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorvarmojfekoj <theinric@redhat.com>2010-02-04 16:02:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:02:57 +0100
commit8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127 (patch)
treefde5f05035166bb859f9be7319f70788b4edb8ef /template.c
parent7d098f14cba4f31dec7d92136183ebd0ccf7e1d0 (diff)
downloadrsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.tar.gz
rsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.tar.xz
rsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.zip
bugfix: several smaller bugs resolved after flexelint review
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'template.c')
-rw-r--r--template.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/template.c b/template.c
index 6e34bcd8..f8615fee 100644
--- a/template.c
+++ b/template.c
@@ -431,10 +431,7 @@ static int do_Constant(unsigned char **pp, struct template *pTpl)
}
if((pTpe = tpeConstruct(pTpl)) == NULL) {
- /* OK, we are out of luck. Let's invalidate the
- * entry and that's it.
- */
- pTpe->eEntryType = UNDEFINED;
+ rsCStrDestruct(&pStrB);
return 1;
}
pTpe->eEntryType = CONSTANT;