summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter/Factory_Finder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Quoter/Factory_Finder.cpp')
-rw-r--r--TAO/examples/Quoter/Factory_Finder.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/TAO/examples/Quoter/Factory_Finder.cpp b/TAO/examples/Quoter/Factory_Finder.cpp
index ad08f3fd7a9..b72bed11b55 100644
--- a/TAO/examples/Quoter/Factory_Finder.cpp
+++ b/TAO/examples/Quoter/Factory_Finder.cpp
@@ -16,7 +16,7 @@
#include "Factory_Finder.h"
-ACE_RCSID (Quoter,
+ACE_RCSID (Quoter,
Factory_Finder, "$Id$")
@@ -57,14 +57,16 @@ Quoter_Factory_Finder_Server::init (int argc,
ACE_TRY
{
exception_message = "While ORB_Manager::init";
- if (this->orb_manager_.init (argc,
- argv
- ACE_ENV_ARG_PARAMETER) == -1)
+ int initvalue = this->orb_manager_.init (argc,
+ argv
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (initvalue == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"init"),
-1);
- ACE_TRY_CHECK;
// Activate the POA manager
exception_message = "While activating the POA manager";