core/dhcp: fix uninitialized GError in NMDhcpDhcpcd's ip4_start()

Found with `git grep 'GError.*[^,)];'| grep ' *= *NULL;' -v`

Fixes: a2abd15fe0 ('DHCP: Support dhcpcd-9.x')
(cherry picked from commit fd50323232)
This commit is contained in:
Thomas Haller 2022-03-09 23:00:21 +01:00
parent fd41ff1d02
commit 34225cccc5
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -70,7 +70,7 @@ ip4_start(NMDhcpClient *client, GError **error)
const NMDhcpClientConfig *client_config;
gs_unref_ptrarray GPtrArray *argv = NULL;
pid_t pid;
GError *local;
GError *local = NULL;
gs_free char *cmd_str = NULL;
const char *dhcpcd_path;