Signed-off-by: Wenchao Xia <[email protected]>
Reviewed-by: John Ferlan <[email protected]>
Reviewed-by: Sharad Mishra <[email protected]>
---
src/Virt_ResourceAllocationSettingDataIndication.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/Virt_ResourceAllocationSettingDataIndication.c
b/src/Virt_ResourceAllocationSettingDataIndication.c
index a386132..93fb563 100644
--- a/src/Virt_ResourceAllocationSettingDataIndication.c
+++ b/src/Virt_ResourceAllocationSettingDataIndication.c
@@ -122,7 +122,11 @@ static CMPIStatus raise_indication(const CMPIBroker
*broker,
if (s.rc == CMPI_RC_OK) {
CU_DEBUG("Indication delivered");
} else {
- CU_DEBUG("Not delivered: %s", CMGetCharPtr(s.msg));
+ if (s.msg == NULL) {
+ CU_DEBUG("Not delivered: msg is NULL.");
+ } else {
+ CU_DEBUG("Not delivered: %s", CMGetCharPtr(s.msg));
+ }
}
out:
--
1.7.1
_______________________________________________
Libvirt-cim mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-cim