From 4b614d8ce0ec98c9cf08df4178a06519351ebbe6 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 19 Dec 2024 14:54:40 -0400 Subject: [PATCH] MT#55283 silence compiler warning Some compilers seem to think that there is some uninitialised usage here. Work around this. Closes #1891 Change-Id: Ic97a4b589fd2a0c33418a209557b7ce29009c7bf --- daemon/nftables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/nftables.c b/daemon/nftables.c index 978a0c047..8de5e4096 100644 --- a/daemon/nftables.c +++ b/daemon/nftables.c @@ -389,7 +389,7 @@ static const char *add_rule(struct mnl_socket *nl, int family, uint32_t *seq, static const char *udp_filter(struct nftnl_rule *r, int family) { - g_autoptr(_nftnl_expr) e; + g_autoptr(_nftnl_expr) e = NULL; static const uint8_t proto = IPPROTO_UDP;