From d1b8e56a62c62ffa78ec299fcdcad04a6c735a6a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 7 May 2022 01:39:20 +0900 Subject: [PATCH] resolve: fix false maybe-uninitialized warning --- src/resolve/resolved-dns-dnssec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c index 859fb27043..cdc89771d5 100644 --- a/src/resolve/resolved-dns-dnssec.c +++ b/src/resolve/resolved-dns-dnssec.c @@ -989,8 +989,9 @@ int dnssec_verify_rrset( DnsResourceRecord **list, *rr; const char *source, *name; - size_t n = 0, sig_size; _cleanup_free_ char *sig_data = NULL; + size_t sig_size = 0; /* avoid false maybe-uninitialized warning */ + size_t n = 0; bool wildcard; int r;