diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 33ac030544..45c2189385 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -300,7 +300,7 @@ Pandora_Windows_Service::pandora_init () { } // Get the agent alias. - conf->getValue ("agent_alias"); + agent_alias = conf->getValue ("agent_alias"); if (agent_alias == "") { agent_alias = Pandora_Windows_Info::getSystemName (); this->conf->setValue("agent_alias", agent_alias); @@ -441,7 +441,7 @@ Pandora_Windows_Service::getXmlHeader () { agent_name = conf->getValue ("agent_name"); // Get agent alias - conf->getValue ("agent_alias"); + agent_alias = conf->getValue ("agent_alias"); // Get parent agent name parent_agent_name = conf->getValue ("parent_agent_name");