From c781b536d85c3e10cbf7a0037c0c440f27829df8 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 20 Nov 2012 09:26:04 +0000 Subject: [PATCH] 2012-11-20 Sergio Martin * modules/pandora_module_factory.cc: Fix a few variable declaration bugs git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7163 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 5 +++++ pandora_agents/win32/modules/pandora_module_factory.cc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 0811465556..aed9790b08 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2012-11-20 Sergio Martin + + * modules/pandora_module_factory.cc: Fix a few + variable declaration bugs + 2012-11-20 Sergio Martin * modules/pandora_module_factory.cc: Added macros diff --git a/pandora_agents/win32/modules/pandora_module_factory.cc b/pandora_agents/win32/modules/pandora_module_factory.cc index 4ef01c89b2..6779225adf 100644 --- a/pandora_agents/win32/modules/pandora_module_factory.cc +++ b/pandora_agents/win32/modules/pandora_module_factory.cc @@ -173,11 +173,13 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) { string module_unit, module_group, module_custom_id, module_str_warning, module_str_critical; string module_critical_instructions, module_warning_instructions, module_unknown_instructions, module_tags; string module_critical_inverse, module_warning_inverse, module_quiet, module_ff_interval; + string macro; Pandora_Module *module; bool numeric; Module_Type type; long agent_interval; list macro_list; + list::iterator macro_iter; list condition_list, precondition_list, intensive_condition_list; list::iterator condition_iter, precondition_iter, intensive_condition_iter; Pandora_Windows_Service *service = NULL; @@ -250,6 +252,7 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) { module_warning_inverse = ""; module_quiet = ""; module_ff_interval = ""; + macro = ""; stringtok (tokens, definition, "\n");