summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorZhuang Yuyao <netone.z@gmail.com>2008-09-10 12:18:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-10 12:18:34 +0200
commitd65470842d1455fd335fcd62e54aed01628a2af6 (patch)
tree9199c9c35243a43f08f50fabfc090986157cbe2e /runtime/msg.c
parentae425d47c53da7ba669b7c6fbe48381eda83180a (diff)
downloadrsyslog-d65470842d1455fd335fcd62e54aed01628a2af6.tar.gz
rsyslog-d65470842d1455fd335fcd62e54aed01628a2af6.tar.xz
rsyslog-d65470842d1455fd335fcd62e54aed01628a2af6.zip
added new capability to property replacer.
Multiple immediately successive field delimiters are treated as a single one. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index fdeae077..28cb235a 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1809,6 +1809,11 @@ char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
++pFld; /* skip to field terminator */
if(*pFld == pTpe->data.field.field_delim) {
++pFld; /* eat it */
+ if (pTpe->data.field.field_expand != 0) {
+ while (*pFld == pTpe->data.field.field_delim) {
+ ++pFld;
+ }
+ }
++iCurrFld;
}
}