summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-09 23:00:21 +0100
committerThomas Haller <thaller@redhat.com>2022-03-09 23:14:38 +0100
commitfd50323232a2f754d8b62c84354d3f781f9a4e69 (patch)
tree1fc56cc061ca46f4c029351156b9b5a6af943c0e
parenta9d521bf8c183b9bb95375545ac514de170e3484 (diff)
downloadNetworkManager-fd50323232a2f754d8b62c84354d3f781f9a4e69.tar.gz
core/dhcp: fix uninitialized GError in NMDhcpDhcpcd's ip4_start()
Found with `git grep 'GError.*[^,)];'| grep ' *= *NULL;' -v` Fixes: a2abd15fe001 ('DHCP: Support dhcpcd-9.x')
-rw-r--r--src/core/dhcp/nm-dhcp-dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dhcp/nm-dhcp-dhcpcd.c b/src/core/dhcp/nm-dhcp-dhcpcd.c
index 45f96ec9d8..4b3429ef67 100644
--- a/src/core/dhcp/nm-dhcp-dhcpcd.c
+++ b/src/core/dhcp/nm-dhcp-dhcpcd.c
@@ -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;