From c6bebca3c76985016970d87e75dd025a169790b0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 20 Feb 2008 14:02:33 +0000 Subject: changed rsCStrDestruct() to use the new interface conventions --- ctok.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ctok.c') 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); } } -- cgit