summaryrefslogtreecommitdiff
path: root/ace/Service_Gestalt.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Service_Gestalt.inl')
-rw-r--r--ace/Service_Gestalt.inl4
1 files changed, 3 insertions, 1 deletions
diff --git a/ace/Service_Gestalt.inl b/ace/Service_Gestalt.inl
index 7f6b4754154..873a930ceab 100644
--- a/ace/Service_Gestalt.inl
+++ b/ace/Service_Gestalt.inl
@@ -36,6 +36,8 @@ ACE_Service_Gestalt::open (int argc,
{
ACE_TRACE ("ACE_Service_Gestalt::open");
+ // Parsing argv may change no_static_svcs_ so set the default here, then
+ // parse, then pass the final value to open_i().
this->no_static_svcs_ = ignore_static_svcs;
if (this->parse_args_i (argc,
@@ -45,7 +47,7 @@ ACE_Service_Gestalt::open (int argc,
return this->open_i (argv == 0 ? 0 : argv[0],
logger_key,
- ignore_static_svcs,
+ this->no_static_svcs_,
ignore_default_svc_conf,
ignore_debug_flag);
}