mirror of https://github.com/Icinga/icinga2.git
parent
c693f7fa20
commit
cdda8d5734
|
@ -122,7 +122,7 @@ void ExternalCommandProcessor::Execute(double time, const String& command, const
|
|||
std::vector<String> realArguments;
|
||||
realArguments.resize(argnum);
|
||||
|
||||
if (arguments.size() > 0)
|
||||
if (argnum > 0) {
|
||||
std::copy(arguments.begin(), arguments.begin() + argnum - 1, realArguments.begin());
|
||||
|
||||
String last_argument;
|
||||
|
@ -134,6 +134,7 @@ void ExternalCommandProcessor::Execute(double time, const String& command, const
|
|||
}
|
||||
|
||||
realArguments[argnum - 1] = last_argument;
|
||||
}
|
||||
|
||||
OnNewExternalCommand(time, command, realArguments);
|
||||
|
||||
|
|
Loading…
Reference in New Issue