CPlugins: try to fix possible segfault while open shellwindow scripts

This commit is contained in:
2016-01-02 00:10:20 +01:00
parent 74bb998c40
commit f54f1d0805

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