From: Luca Boccassi Date: Sun, 2 Oct 2022 19:11:21 +0000 (+0100) Subject: repart: workaround spurious maybe-uninitialized warning X-Git-Tag: v252-rc1~28^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=419f2742e792b251c2522805ce97ac6e97f15bb2;p=thirdparty%2Fsystemd.git repart: workaround spurious maybe-uninitialized warning Build fails on Ubuntu Jammy --- 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;