summaryrefslogtreecommitdiff
path: root/TAO/tao/target_identifier.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/target_identifier.i')
-rw-r--r--TAO/tao/target_identifier.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/TAO/tao/target_identifier.i b/TAO/tao/target_identifier.i
index 9f79b1bcb21..9011b327880 100644
--- a/TAO/tao/target_identifier.i
+++ b/TAO/tao/target_identifier.i
@@ -13,6 +13,9 @@ ACE_INLINE void
TAO_Target_Specification::target_specifier (const TAO_ObjectKey &key)
{
this->specifier_ = TAO_Target_Specification::Key_Addr;
+ // @@ Bala: this is a good recipe for a crash, if the <key> was on
+ // the stack or is otherwise destroyed then you are in big
+ // trouble.
this->u_.object_key_ = ACE_const_cast (TAO_ObjectKey *,
&key);
}