dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

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

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