CPlugins: try to fix possible segfault while open shellwindow scripts

Origin commit data
------------------
Branch: ni/coolstream
Commit: f54f1d0805
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-02 (Sat, 02 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-01-02 00:10:20 +01:00
parent 78413e4836
commit 70fa034418

View File

@@ -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