diff options
Diffstat (limited to 'TAO/tao/Any.cpp')
-rw-r--r-- | TAO/tao/Any.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/Any.cpp b/TAO/tao/Any.cpp index 6cf993c58d1..42ade0776ac 100644 --- a/TAO/tao/Any.cpp +++ b/TAO/tao/Any.cpp @@ -1363,8 +1363,9 @@ CORBA_Any::operator>>= (const CORBA::Any *&a) const } else { - CORBA::Any_var tmp; - ACE_NEW_RETURN (tmp.out (), CORBA::Any, 0); + CORBA::Any *x; + ACE_NEW_RETURN (x, CORBA::Any, 0); + CORBA::Any_var tmp = x; TAO_InputCDR stream (this->cdr_, this->byte_order_); if (!(stream >> tmp.inout ())) |