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')
This commit is contained in:
Thomas Haller 2022-03-09 23:00:21 +01:00
parent a9d521bf8c
commit fd50323232
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;