]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: workaround spurious maybe-uninitialized warning
authorLuca Boccassi <bluca@debian.org>
Sun, 2 Oct 2022 19:11:21 +0000 (20:11 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 3 Oct 2022 09:26:31 +0000 (10:26 +0100)
Build fails on Ubuntu Jammy

src/partition/repart.c

index 7a24e8ffec8cbd8a9398a3ce3ca6d8c57bac3fa2..cbda6e408bdedd19ba21d7126504eb466dc6ec21 100644 (file)
@@ -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;