summaryrefslogtreecommitdiffstats
path: root/runtime/obj.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-23 11:33:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-23 11:33:11 +0200
commit6181156b1c42825bac892d3e1284dcb2d4fcf5d3 (patch)
tree83c643e66580506bdba2de4cd1fa497bd8e0d96c /runtime/obj.h
parentd798f5b66f4ae699f352b6c40abd07495eff8f94 (diff)
downloadrsyslog-6181156b1c42825bac892d3e1284dcb2d4fcf5d3.tar.gz
rsyslog-6181156b1c42825bac892d3e1284dcb2d4fcf5d3.tar.xz
rsyslog-6181156b1c42825bac892d3e1284dcb2d4fcf5d3.zip
fix: previous patch aborted in release mode
Diffstat (limited to 'runtime/obj.h')
-rw-r--r--runtime/obj.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/obj.h b/runtime/obj.h
index 50868cc9..419d29cc 100644
--- a/runtime/obj.h
+++ b/runtime/obj.h
@@ -81,7 +81,9 @@
((obj_t*) (pThis))->pszName = NULL; \
((obj_t*) (pThis))->iObjCooCKiE = 0xBADEFEE
#else
-# define objConstructSetObjInfo(pThis) ((obj_t*) (pThis))->pObjInfo = pObjInfoOBJ
+# define objConstructSetObjInfo(pThis) \
+ ((obj_t*) (pThis))->pObjInfo = pObjInfoOBJ; \
+ ((obj_t*) (pThis))->pszName = NULL
#endif
#define objDestruct(pThis) (((obj_t*) (pThis))->pObjInfo->objMethods[objMethod_DESTRUCT])(&pThis)
#define objSerialize(pThis) (((obj_t*) (pThis))->pObjInfo->objMethods[objMethod_SERIALIZE])