673c78
From cee4a7f69d853fcc574241d394edc5bcb91469a5 Mon Sep 17 00:00:00 2001
673c78
From: Karel Zak <kzak@redhat.com>
673c78
Date: Mon, 6 Jun 2022 16:19:16 +0200
673c78
Subject: zramctl: fix compiler warning [-Werror=maybe-uninitialized]
673c78
673c78
Upstream: http://github.com/util-linux/util-linux/commit/8883f037466a5534554d7d9114aceb740295ef20
673c78
Addresses: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2109459
673c78
Signed-off-by: Karel Zak <kzak@redhat.com>
673c78
---
673c78
 sys-utils/zramctl.c | 2 +-
673c78
 1 file changed, 1 insertion(+), 1 deletion(-)
673c78
673c78
diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c
673c78
index 003349fad..64d5fcd81 100644
673c78
--- a/sys-utils/zramctl.c
673c78
+++ b/sys-utils/zramctl.c
673c78
@@ -291,7 +291,7 @@ static struct path_cxt *zram_get_control(void)
673c78
 
673c78
 static int zram_control_add(struct zram *z)
673c78
 {
673c78
-	int n;
673c78
+	int n = 0;
673c78
 	struct path_cxt *ctl;
673c78
 
673c78
 	if (!zram_has_control(z) || !(ctl = zram_get_control()))
673c78
-- 
673c78
2.36.1
673c78