From 69007c4dcaf9bd0b1c673206a01d821dd3bb84ec Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 12 Nov 2013 13:56:53 +0000 Subject: [PATCH] 2013-11-12 Ramon Novoa * modules/pandora_module_factory.cc: Fixed a bug when a macro has no value. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9064 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 5 +++++ pandora_agents/win32/modules/pandora_module_factory.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index cbff6aa105..d0e28a8ef3 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2013-11-12 Ramon Novoa + + * modules/pandora_module_factory.cc: Fixed a bug when a macro has + no value. + 2013-09-16 Ramon Novoa * modules/pandora_module_inventory.cc: Do not output anything if the diff --git a/pandora_agents/win32/modules/pandora_module_factory.cc b/pandora_agents/win32/modules/pandora_module_factory.cc index 018435b03a..94a3d99a34 100644 --- a/pandora_agents/win32/modules/pandora_module_factory.cc +++ b/pandora_agents/win32/modules/pandora_module_factory.cc @@ -530,7 +530,7 @@ Pandora_Module_Factory::getModuleFromDefinition (string definition) { // At this point macro_name is "macro_name macro_value" pos = macro_name.find (" "); - if(pos != 0) { + if(pos != string::npos) { // Split name of the macro y value macro_value = macro_name.substr (pos + 1); macro_name.erase(pos, macro_name.size () - pos);