summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-25 00:24:16 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-25 00:24:16 +0000
commitd09ff0497469a79954794eba6219e8f140e4319c (patch)
treed888d22f1a7fe07cbc97848040af872305cd2fb5
parentaa1b72afb08e7c315a8d6509f8af8015b3e55868 (diff)
downloadATCD-d09ff0497469a79954794eba6219e8f140e4319c.tar.gz
Should initialize old_type_ instead of dont_care.
-rw-r--r--TAO/tao/IIOP_Object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/IIOP_Object.cpp b/TAO/tao/IIOP_Object.cpp
index d92e3eab579..33829eb8c6b 100644
--- a/TAO/tao/IIOP_Object.cpp
+++ b/TAO/tao/IIOP_Object.cpp
@@ -383,6 +383,7 @@ public:
// only used within this one file right now, and we always want them
// inlined, so here they sit.
TAO_Synchronous_Cancellation_Required (void)
+ : old_type_ (0)
{
#if !defined (VXWORKS)
ACE_OS::thr_setcanceltype (THR_CANCEL_DEFERRED, &old_type_);
@@ -392,7 +393,7 @@ public:
~TAO_Synchronous_Cancellation_Required (void)
{
#if !defined (VXWORKS)
- int dont_care = 0;
+ int dont_care;
ACE_OS::thr_setcanceltype(old_type_, &dont_care);
#endif /* ! VXWORKS */
}