diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 3522c041cc..fe5980e8d4 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -1433,10 +1433,10 @@ Pandora_Windows_Service::checkConfig (string file) { if (tmp != "") { agent_name = tmp; } - } + } /* Error getting agent name */ - if (tmp.empty ()) { + if (agent_name.empty ()) { pandoraDebug ("Pandora_Windows_Service::checkConfig: Error getting agent name"); return 0; }