Blame SOURCES/0032-zramctl-fix-compiler-warning-Werror-maybe-uninitiali.patch

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