4coder»Forums
Charly Mourglia
5 posts
None
Do not display output of exec_system_command
Edited by Charly Mourglia on Reason: formatting
In the docs there it is told that
docs
If the view parameter is NULL, no view will switch to the output.
.
But, when I set the view parameter to NULL, I get a segfault on linux. Is there anything I did not understand ?

1
app->exec_system_command(app, &view, buffer_identifier("*compilation*")), ".", 1, cmd, cmd_len, 0);


is perfectly fine, but

1
app->exec_system_command(app, nullptr, buffer_identifier("*compilation*")), ".", 1, cmd, cmd_len, 0);


crashes.
Allen Webster
476 posts / 6 projects
Heyo
Do not display output of exec_system_command
Good catch, I just found a silly bug in how I treat null view parameters.

In the future if you send bug reports to the 4coder email [email protected], I will see the issue sooner and be quicker to respond.