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 /msg.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 'msg.c')
-rw-r--r-- | msg.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -274,15 +274,15 @@ CODESTARTobjDestruct(msg) if(pThis->pszPRI != NULL) free(pThis->pszPRI); if(pThis->pCSProgName != NULL) - rsCStrDestruct(pThis->pCSProgName); + rsCStrDestruct(&pThis->pCSProgName); if(pThis->pCSStrucData != NULL) - rsCStrDestruct(pThis->pCSStrucData); + rsCStrDestruct(&pThis->pCSStrucData); if(pThis->pCSAPPNAME != NULL) - rsCStrDestruct(pThis->pCSAPPNAME); + rsCStrDestruct(&pThis->pCSAPPNAME); if(pThis->pCSPROCID != NULL) - rsCStrDestruct(pThis->pCSPROCID); + rsCStrDestruct(&pThis->pCSPROCID); if(pThis->pCSMSGID != NULL) - rsCStrDestruct(pThis->pCSMSGID); + rsCStrDestruct(&pThis->pCSMSGID); funcDeleteMutex(pThis); } else { pThis = NULL; /* tell framework not to destructing the object! */ @@ -480,8 +480,7 @@ static rsRetVal aquirePROCIDFromTAG(msg_t *pM) * the buffer and simply return. Note that this is NOT an error * case! */ - rsCStrDestruct(pM->pCSPROCID); - pM->pCSPROCID = NULL; + rsCStrDestruct(&pM->pCSPROCID); FINALIZE; } |