diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 11:36:05 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-16 11:36:05 +0200 |
commit | f7579e68a67364c8040966be57c2eae4c9550ee5 (patch) | |
tree | b0e0eb7e54f6fb5db3b6600d0f3fe72a4a0f271e /runtime/ctok.c | |
parent | 015d17ca70e81ad998e32cdfeed3cd925fd7dedc (diff) | |
download | rsyslog-f7579e68a67364c8040966be57c2eae4c9550ee5.tar.gz rsyslog-f7579e68a67364c8040966be57c2eae4c9550ee5.tar.xz rsyslog-f7579e68a67364c8040966be57c2eae4c9550ee5.zip |
done various optimizations to the stringbuf and its users
Diffstat (limited to 'runtime/ctok.c')
-rw-r--r-- | runtime/ctok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ctok.c b/runtime/ctok.c index d2cd8bbd..263e656c 100644 --- a/runtime/ctok.c +++ b/runtime/ctok.c @@ -269,7 +269,7 @@ ctokGetVar(ctok_t *pThis, ctok_token_t *pToken) } CHKiRet(ctokUngetCharFromStream(pThis, c)); /* put not processed char back */ - CHKiRet(rsCStrFinish(pstrVal)); + CHKiRet(cstrFinalize(pstrVal)); CHKiRet(var.SetString(pToken->pVar, pstrVal)); pstrVal = NULL; @@ -319,7 +319,7 @@ ctokGetSimpStr(ctok_t *pThis, ctok_token_t *pToken) } CHKiRet(ctokGetCharFromStream(pThis, &c)); } - CHKiRet(rsCStrFinish(pStrB)); + CHKiRet(cstrFinalize(pstrVal)); CHKiRet(var.SetString(pToken->pVar, pstrVal)); pstrVal = NULL; |