diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-09 22:14:34 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-09 22:14:34 +0000 |
commit | 7673871654bbe7a6b974147e02587918e2e734ff (patch) | |
tree | 970ef0d20133969547ca8de56ffbef83ac50e44b | |
parent | 894e3447c7d5102dea6ceafce9b5cf207afb9aac (diff) | |
download | ATCD-7673871654bbe7a6b974147e02587918e2e734ff.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/orbsvcs/Naming_Service/Naming_Service.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp index 170fc295077..1b4a4ca1893 100644 --- a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp +++ b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp @@ -49,7 +49,9 @@ Naming_Service::parse_args (int argc, switch (c) { case 'o': // outputs the naming service ior to a file. - this->ior_output_file_ = ACE_OS::fopen (get_opts.optarg, "w"); + this->ior_output_file_ = + ACE_OS::fopen (get_opts.optarg, "w"); + if (this->ior_output_file_ == 0) ACE_ERROR_RETURN ((LM_ERROR, "Unable to open %s for writing: %p\n", @@ -97,7 +99,7 @@ Naming_Service::init (int argc, argc, argv); TAO_CHECK_ENV; - if (result < 0) + if (result == -1) return result; } TAO_CATCHANY |