# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196272229 28800
# Node ID cac519783620f111b033536c6e57978bc3eb7798
# Parent 19721bc1591be90ca7d419fa807fee68fb56d6ae
Fixes to VSMC for libcmpiutil API change
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 19721bc1591b -r cac519783620 src/Virt_VirtualSystemManagementCapabilities.c
--- a/src/Virt_VirtualSystemManagementCapabilities.c Wed Nov 28 09:50:29 2007 -0800
+++ b/src/Virt_VirtualSystemManagementCapabilities.c Wed Nov 28 09:50:29 2007 -0800
@@ -95,10 +95,9 @@ CMPIStatus get_vsm_cap(const CMPIBroker
CMPIStatus s;
CMPIObjectPath *op;
char *classname = NULL;
- char *sys_name = NULL;
-
- sys_name = cu_get_str_path(ref, "Name");
- if (sys_name == NULL) {
+ const char *sys_name = NULL;
+
+ if (cu_get_str_path(ref, "Name", &sys_name) != CMPI_RC_OK) {
CMSetStatusWithChars(broker, &s,
CMPI_RC_ERR_FAILED,
"Missing key: Name");
@@ -134,7 +133,6 @@ CMPIStatus get_vsm_cap(const CMPIBroker
out:
free(classname);
- free(sys_name);
return s;
}