mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"
This reverts commit 0d4768528dee7217f8a66065d824d044c1a877ed.
This commit is contained in:
parent
0d4768528d
commit
071ac754ca
@ -130,7 +130,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
|
||||
(line[strlen(line) - 1] == '\r' || line[strlen(line) - 1] == '\n'))
|
||||
line[strlen(line) - 1] = '\0';
|
||||
|
||||
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, String(line)));
|
||||
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line));
|
||||
}
|
||||
|
||||
delete line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user