From f54f1d0805a52075b381a62557483253fce2198b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 2 Jan 2016 00:10:20 +0100 Subject: [PATCH] CPlugins: try to fix possible segfault while open shellwindow scripts --- src/gui/plugins.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/plugins.cpp b/src/gui/plugins.cpp index e6e3560e4..99466f548 100644 --- a/src/gui/plugins.cpp +++ b/src/gui/plugins.cpp @@ -409,7 +409,8 @@ void CPlugins::startScriptPlugin(int number) chmod(script, 0755); if (plugin_list[number].shellwindow) { - CShellWindow(script, CShellWindow::VERBOSE | CShellWindow::ACKNOWLEDGE); + int res = 0; + CShellWindow (script, CShellWindow::VERBOSE | CShellWindow::ACKNOWLEDGE, &res); scriptOutput = ""; } else