From 419f2742e792b251c2522805ce97ac6e97f15bb2 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 2 Oct 2022 20:11:21 +0100 Subject: [PATCH] repart: workaround spurious maybe-uninitialized warning Build fails on Ubuntu Jammy --- src/partition/repart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index 7a24e8ffec8..cbda6e408bd 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -3788,7 +3788,7 @@ static int context_verity_sig(Context *context) { _cleanup_free_ char *text = NULL; Partition *hp; uint8_t fp[X509_FINGERPRINT_SIZE]; - size_t sigsz, padsz; + size_t sigsz = 0, padsz; /* avoid false maybe-uninitialized warning */ if (p->dropped) continue; -- 2.47.3