diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 14:02:33 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 14:02:33 +0000 |
commit | c6bebca3c76985016970d87e75dd025a169790b0 (patch) | |
tree | 1d429d1c82e9775de8dcf746dd5b4720d1c1fce6 /ctok.c | |
parent | 33f061484d7456f0eb34f9ebab7a82e25ac26448 (diff) | |
download | rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.tar.gz rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.tar.xz rsyslog-c6bebca3c76985016970d87e75dd025a169790b0.zip |
changed rsCStrDestruct() to use the new interface conventions
Diffstat (limited to 'ctok.c')
-rw-r--r-- | ctok.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -266,8 +266,7 @@ dbgprintf("var, var is: '%s'\n", rsCStrGetSzStr(pToken->pstrVal)); finalize_it: if(iRet != RS_RET_OK) { if(pToken->pstrVal != NULL) { - rsCStrDestruct(pToken->pstrVal); - pToken->pstrVal = NULL; + rsCStrDestruct(&pToken->pstrVal); } } @@ -315,8 +314,7 @@ dbgprintf("simpstr, str is: '%s'\n", rsCStrGetSzStr(pToken->pstrVal)); finalize_it: if(iRet != RS_RET_OK) { if(pToken->pstrVal != NULL) { - rsCStrDestruct(pToken->pstrVal); - pToken->pstrVal = NULL; + rsCStrDestruct(&pToken->pstrVal); } } |