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:
Thomas Haller 2023-04-03 19:45:36 +02:00
parent ce414933a7
commit 1378ed7d96
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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("/",