]> granicus.if.org Git - icinga2/commitdiff
Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread"
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 21 Aug 2014 07:36:00 +0000 (09:36 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 21 Aug 2014 07:36:00 +0000 (09:36 +0200)
This reverts commit 0d4768528dee7217f8a66065d824d044c1a877ed.

components/compat/externalcommandlistener.cpp

index 55d744818bf29284600f92474fba6e83421b1c2d..f9361095518a2d79ad9773c82e02378625bc227f 100644 (file)
@@ -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;