From d65470842d1455fd335fcd62e54aed01628a2af6 Mon Sep 17 00:00:00 2001 From: Zhuang Yuyao Date: Wed, 10 Sep 2008 12:18:34 +0200 Subject: added new capability to property replacer. Multiple immediately successive field delimiters are treated as a single one. Signed-off-by: Rainer Gerhards --- runtime/msg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime') 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; } } -- cgit