diff options
author | Thomas Haller <thaller@redhat.com> | 2023-04-03 19:45:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-04-04 08:43:21 +0200 |
commit | 1378ed7d963bf10cdeb28b7999ad490ca8963509 (patch) | |
tree | 9361e5ca2ec7d3bafde23062dbe4f313a8ed8d7d | |
parent | ce414933a7bf8b52de4cf1990c96bc32af77b5d6 (diff) |
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.
-rw-r--r-- | src/core/nm-core-utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c index 6417cfc43f..628947a969 100644 --- a/src/core/nm-core-utils.c +++ b/src/core/nm-core-utils.c @@ -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("/", |