diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-13 21:53:55 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-13 21:53:55 +0000 |
commit | 1e1a940ff5051854bd735e02115cee05422a4ae6 (patch) | |
tree | 0edcd9b311fc6b64af7a1b588124328d4cba960f /TAO/tao/Sequence_T.i | |
parent | e9892125aa9dcc63767623aed27ae8c207f6ccf8 (diff) | |
download | ATCD-1e1a940ff5051854bd735e02115cee05422a4ae6.tar.gz |
Fixed a case in TAO_Unbounded_Sequence where a call to get_buffer()
returns 0, even if the buffer is non-null.
Diffstat (limited to 'TAO/tao/Sequence_T.i')
-rw-r--r-- | TAO/tao/Sequence_T.i | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/Sequence_T.i b/TAO/tao/Sequence_T.i index e5bc3af344d..9b32198a53a 100644 --- a/TAO/tao/Sequence_T.i +++ b/TAO/tao/Sequence_T.i @@ -60,12 +60,13 @@ TAO_Unbounded_Sequence<T>::get_buffer (CORBA::Boolean orphan) } else // if (orphan == 1) { + result = ACE_reinterpret_cast (T*, + this->buffer_); + if (this->release_ != 0) { // We set the state back to default and relinquish // ownership. - result = ACE_reinterpret_cast (T*, - this->buffer_); this->maximum_ = 0; this->length_ = 0; this->buffer_ = 0; |