Commit b3bff53b authored by Murray Cumming's avatar Murray Cumming
Browse files

Initialize some variables.

Found by IntelliJ CLion inspections.
parent 74d2b54e
......@@ -189,8 +189,8 @@ public:
try
{
std::vector<std::string> arguments = Glib::shell_parse_argv(command_line);
int child_stdout;
int child_stderr;
int child_stdout = 0;
int child_stderr = 0;
Glib::spawn_async_with_pipes(Glib::get_current_dir(), arguments, Glib::SPAWN_DO_NOT_REAP_CHILD, sigc::slot<void>(), &pid, 0, (redirect & REDIRECT_STDOUT) ? &child_stdout : 0, (redirect & REDIRECT_STDERR) ? &child_stderr : 0);
if(redirect & REDIRECT_STDOUT)
redirect_to_string(child_stdout, stdout_text);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment