summaryrefslogtreecommitdiffstats
path: root/msg.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 /msg.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 'msg.c')
-rw-r--r--msg.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/msg.c b/msg.c
index b23d2724..505f878a 100644
--- a/msg.c
+++ b/msg.c
@@ -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;
}