From: Karel Zak Date: Mon, 6 Jun 2022 14:19:16 +0000 (+0200) Subject: zramctl: fix compiler warning [-Werror=maybe-uninitialized] X-Git-Tag: v2.38.1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa66e103e1e657d003084c42dd2697c017ab974;p=thirdparty%2Futil-linux.git zramctl: fix compiler warning [-Werror=maybe-uninitialized] Signed-off-by: Karel Zak --- diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c index 0d6b0f04f2..0c321b8cc7 100644 --- a/sys-utils/zramctl.c +++ b/sys-utils/zramctl.c @@ -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()))