diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-21 11:26:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-21 11:26:55 +0200 |
commit | e5bf0324acc5f9fc1209d2659fa3b86436da19dc (patch) | |
tree | 05c14f8123058e29213b4cf66857c40b1b35aafb | |
parent | 86e59fa0f02df93191cf97d823c790c5aacb4d97 (diff) | |
download | rsyslog-e5bf0324acc5f9fc1209d2659fa3b86436da19dc.tar.gz rsyslog-e5bf0324acc5f9fc1209d2659fa3b86436da19dc.tar.bz2 rsyslog-e5bf0324acc5f9fc1209d2659fa3b86436da19dc.zip |
regression fix: global variables could not be accessed via script
-rw-r--r-- | runtime/rsconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c index b739608a..6c7c5fd5 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -490,7 +490,7 @@ cnfGetVar(char *name, void *usrptr) else if(name[1] == '!') estr = msgGetCEEVarNew((msg_t*) usrptr, name+2); else - estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name+1); + estr = msgGetMsgVarNew((msg_t*) usrptr, (uchar*)name); } else { /* if this happens, we have a program logic error */ estr = es_newStrFromCStr("err: var must start with $", sizeof("err: var must start with $")-1); |