2013-11-12 Ramon Novoa <rnovoa@artica.es>

* 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
This commit is contained in:
ramonn 2013-11-12 13:56:53 +00:00
parent 8b339baecb
commit 25fe10bfd6
2 changed files with 6 additions and 1 deletions
pandora_agents/win32

@ -1,3 +1,8 @@
2013-11-12 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_factory.cc: Fixed a bug when a macro has
no value.
2013-09-16 Ramon Novoa <rnovoa@artica.es>
* modules/pandora_module_inventory.cc: Do not output anything if the

@ -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);