diff options
author | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-14 03:49:17 +0000 |
---|---|---|
committer | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-14 03:49:17 +0000 |
commit | aed338cd3c6d20b16181deeb0ee1ddb296f95256 (patch) | |
tree | 0e57ad2a6192be041daad6b6b87f2baebbffa1ce /ace/Thread.i | |
parent | 106bc0f3c393bd1703d63e9dcac33f21243f1cc6 (diff) | |
download | ATCD-aed338cd3c6d20b16181deeb0ee1ddb296f95256.tar.gz |
Gave default values to many old_cstate local variables.
Diffstat (limited to 'ace/Thread.i')
-rw-r--r-- | ace/Thread.i | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/Thread.i b/ace/Thread.i index 1684c0c7f14..b36658fe11f 100644 --- a/ace/Thread.i +++ b/ace/Thread.i @@ -150,7 +150,7 @@ ACE_INLINE int ACE_Thread::disablecancel (struct cancel_state *old_state) { ACE_TRACE ("ACE_Thread::disablecancel"); - int old_cstate; + int old_cstate = 0; int retval; if ((retval = ACE_OS::thr_setcancelstate (THR_CANCEL_DISABLE, &old_cstate)) == 0) @@ -168,8 +168,8 @@ ACE_Thread::enablecancel (struct cancel_state *old_state, int flag) { ACE_TRACE ("ACE_Thread::enablecancel"); - int old_cstate; - int old_ctype; + int old_cstate = 0; + int old_ctype = 0; int retval; retval = ACE_OS::thr_setcancelstate (THR_CANCEL_ENABLE, &old_cstate); @@ -196,8 +196,8 @@ ACE_Thread::setcancelstate (struct cancel_state &new_state, struct cancel_state *old_state) { ACE_TRACE ("ACE_Thread::setcancelstate"); - int old_cstate; - int old_ctype; + int old_cstate = 0; + int old_ctype = 0; if (new_state.cancelstate != 0 && ACE_OS::thr_setcancelstate (new_state.cancelstate, |