summaryrefslogtreecommitdiffstats
path: root/ctok.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-20 14:02:33 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-20 14:02:33 +0000
commitc6bebca3c76985016970d87e75dd025a169790b0 (patch)
tree1d429d1c82e9775de8dcf746dd5b4720d1c1fce6 /ctok.c
parent33f061484d7456f0eb34f9ebab7a82e25ac26448 (diff)
downloadrsyslog-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ctok.c b/ctok.c
index 716fdefc..3d0b55f7 100644
--- a/ctok.c
+++ b/ctok.c
@@ -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);
}
}