summaryrefslogtreecommitdiffstats
path: root/runtime/ruleset.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-23 17:29:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-23 17:29:04 +0200
commit5cddb0533b53f8acfa36a65a4337ff368aa980de (patch)
tree3843f5d24c817c5ff7f0c60f05025abce80e864a /runtime/ruleset.c
parent9cd8a73cb633a1e4e8b4babd0708d5640aa91445 (diff)
downloadrsyslog-5cddb0533b53f8acfa36a65a4337ff368aa980de.tar.gz
rsyslog-5cddb0533b53f8acfa36a65a4337ff368aa980de.tar.bz2
rsyslog-5cddb0533b53f8acfa36a65a4337ff368aa980de.zip
fix VAR handling in script grammar and code
The $-var designator is now correctly stripped off the varname.
Diffstat (limited to 'runtime/ruleset.c')
-rw-r--r--runtime/ruleset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ruleset.c b/runtime/ruleset.c
index b7055eac..15e9e5ea 100644
--- a/runtime/ruleset.c
+++ b/runtime/ruleset.c
@@ -261,7 +261,7 @@ execUnset(struct cnfstmt *stmt, batch_t *pBatch, sbool *active)
for(i = 0 ; i < batchNumMsgs(pBatch) && !*(pBatch->pbShutdownImmediate) ; ++i) {
if( pBatch->eltState[i] != BATCH_STATE_DISC
&& (active == NULL || active[i])) {
- msgUnsetJSON(pBatch->pElem[i].pMsg, stmt->d.s_unset.varname);
+ msgDelJSON(pBatch->pElem[i].pMsg, stmt->d.s_unset.varname);
}
}
RETiRet;