diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-19 16:07:17 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-19 16:07:17 +0200 |
commit | 3abf567d2b57014381eda49018a0e2c21fa1b853 (patch) | |
tree | 6329a682041da705a363efd842740ed8c025b848 /runtime/stringbuf.c | |
parent | 953d015f440224321796105464294006838b5302 (diff) | |
download | rsyslog-3abf567d2b57014381eda49018a0e2c21fa1b853.tar.gz rsyslog-3abf567d2b57014381eda49018a0e2c21fa1b853.tar.xz rsyslog-3abf567d2b57014381eda49018a0e2c21fa1b853.zip |
optimized template string generation
Diffstat (limited to 'runtime/stringbuf.c')
-rw-r--r-- | runtime/stringbuf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c index e7fa8c41..d3ddf33a 100644 --- a/runtime/stringbuf.c +++ b/runtime/stringbuf.c @@ -461,14 +461,11 @@ cstrFinalize(cstr_t *pThis) DEFiRet; rsCHECKVALIDOBJECT(pThis, OIDrsCStr); - assert(pThis->bIsFinalized == 0); - if(pThis->iStrLen > 0) { /* terminate string only if one exists */ CHKiRet(cstrAppendChar(pThis, '\0')); --pThis->iStrLen; /* do NOT count the \0 byte */ } - pThis->bIsFinalized = 1; finalize_it: RETiRet; |