File bsc#1171372-0010-Refactor-libstonithd-make-the-assert-message-from-st-1.1.patch of Package pacemaker.19778
From f70760306b9a1bc3ce47df950d48992d17fdebc2 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Sat, 9 May 2020 17:01:52 +0200
Subject: [PATCH 10/11] Refactor: libstonithd: make the assert message from
stonith__device_parameter_flags() more clear
---
lib/fencing/st_client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c
index c64541383..78073521a 100644
--- a/lib/fencing/st_client.c
+++ b/lib/fencing/st_client.c
@@ -2437,7 +2437,7 @@ stonith__device_parameter_flags(xmlNode *metadata)
int lpc = 0;
long long flags = 0;
- CRM_CHECK(metadata, return 0);
+ CRM_CHECK(metadata != NULL, return 0);
xpath = xpath_search(metadata, "//parameter");
max = numXpathResults(xpath);
--
2.26.1