mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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:
parent
8b339baecb
commit
25fe10bfd6
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user