mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 00:00:34 +01:00
core: drop unnecessary initialization in nm_utils_spawn_helper()
We did not initialize "child_stderr". If that were necessary, we would need to add it too. However, it is clearly not necessary to initialize those fields.
This commit is contained in:
parent
ce414933a7
commit
1378ed7d96
1 changed files with 1 additions and 4 deletions
|
|
@ -5098,10 +5098,7 @@ nm_utils_spawn_helper(const char *const *args,
|
|||
|
||||
info = g_new(HelperInfo, 1);
|
||||
*info = (HelperInfo){
|
||||
.task = nm_g_task_new(NULL, cancellable, nm_utils_spawn_helper, callback, cb_data),
|
||||
.child_stdin = -1,
|
||||
.child_stdout = -1,
|
||||
.pid = -1,
|
||||
.task = nm_g_task_new(NULL, cancellable, nm_utils_spawn_helper, callback, cb_data),
|
||||
};
|
||||
|
||||
if (!g_spawn_async_with_pipes("/",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue