
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1196195081 28800 # Node ID 0d30be4ad77c9a476eeee6dcd56c183c7de566a2 # Parent 393868c380f668d3d5e765f6503be3eb3eac0a62 Fixes to ELEC for libcmpiutil API change Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 393868c380f6 -r 0d30be4ad77c src/Virt_EnabledLogicalElementCapabilities.c --- a/src/Virt_EnabledLogicalElementCapabilities.c Tue Nov 27 12:24:21 2007 -0800 +++ b/src/Virt_EnabledLogicalElementCapabilities.c Tue Nov 27 12:24:41 2007 -0800 @@ -108,10 +108,9 @@ CMPIStatus get_ele_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"); @@ -147,7 +146,6 @@ CMPIStatus get_ele_cap(const CMPIBroker out: free(classname); - free(sys_name); return s; }