From 70fa034418bdea4b412c0a338315c623d71c9ea9 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f54f1d0805a52075b381a62557483253fce2198b Author: Thilo Graf Date: 2016-01-02 (Sat, 02 Jan 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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