]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
zramctl: fix compiler warning [-Werror=maybe-uninitialized]
authorKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 14:19:16 +0000 (16:19 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 14:19:16 +0000 (16:19 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/zramctl.c

index 0d6b0f04f21909ddc961f4c4f242ff3c743178cd..0c321b8cc7a6393168a6dfe9772329f2393680d9 100644 (file)
@@ -291,7 +291,7 @@ static struct path_cxt *zram_get_control(void)
 
 static int zram_control_add(struct zram *z)
 {
-       int n;
+       int n = 0;
        struct path_cxt *ctl;
 
        if (!zram_has_control(z) || !(ctl = zram_get_control()))