summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-07-17 20:11:09 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-07-17 20:11:09 +0000
commit1652575e436322e222dfe26fa8effb80e92d4600 (patch)
tree2b7aa1bd7299e79e66191bdf24d0478c6c411eb2
parentc4e7b4e98f456ab130e8d3bb154bccf5aad6ffc1 (diff)
downloadATCD-1652575e436322e222dfe26fa8effb80e92d4600.tar.gz
Changed a return value from zero to CORBA::Object::_nil () since
the return type is CORBA::Object_ptr.
-rw-r--r--TAO/tao/ORB.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index 4c2230541fc..a0c5c185522 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -936,9 +936,11 @@ CORBA_ORB::resolve_initial_references (const char *name,
return this->string_to_object (list_of_profiles.c_str (),
ACE_TRY_ENV);
}
-
- // Clean up.
- delete [] default_init_ref;
+ else
+ {
+ // Clean up.
+ delete [] default_init_ref;
+ }
}
// Did not find it in the InitRef table, or in the DefaultInitRef
@@ -954,7 +956,7 @@ CORBA_ORB::resolve_initial_references (const char *name,
return this->resolve_implrepo_service (timeout, ACE_TRY_ENV);
else
- ACE_THROW_RETURN (CORBA::ORB::InvalidName (), 0);
+ ACE_THROW_RETURN (CORBA::ORB::InvalidName (), CORBA::Object::_nil ());
}