dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0031-cfdisk-don-t-use-NULL-in-printf-coverity-scan.patch

dbeef3
From da3add097b70160cd2c6bab0a4acb699df07ebe8 Mon Sep 17 00:00:00 2001
dbeef3
From: Karel Zak <kzak@redhat.com>
dbeef3
Date: Thu, 17 Mar 2022 10:48:33 +0100
dbeef3
Subject: cfdisk: don't use NULL in printf [coverity scan]
dbeef3
dbeef3
Upstream: http://github.com/util-linux/util-linux/commit/30cc5f5751698cccb625193f715f1a606a7f91b4
dbeef3
Addresses: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2109459
dbeef3
Signed-off-by: Karel Zak <kzak@redhat.com>
dbeef3
---
dbeef3
 disk-utils/cfdisk.c | 2 +-
dbeef3
 1 file changed, 1 insertion(+), 1 deletion(-)
dbeef3
dbeef3
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
dbeef3
index c1b28889f..36eb3f8c6 100644
dbeef3
--- a/disk-utils/cfdisk.c
dbeef3
+++ b/disk-utils/cfdisk.c
dbeef3
@@ -2080,7 +2080,7 @@ done:
dbeef3
 	}
dbeef3
 	free(cm);
dbeef3
 	DBG(UI, ul_debug("get parrtype done [type=%s] ", t ?
dbeef3
-				fdisk_parttype_get_name(t) : NULL));
dbeef3
+				fdisk_parttype_get_name(t) : ""));
dbeef3
 	return t;
dbeef3
 }
dbeef3
 
dbeef3
-- 
dbeef3
2.36.1
dbeef3