# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196194946 28800
# Node ID bf7fc8b2c3b68b409052757853b450002bb7e1da
# Parent 64da04a35e65ed87ee6bd144cdbf5a9d8efd9383
Fixes to RASD for libcmpiutil API change
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 64da04a35e65 -r bf7fc8b2c3b6 src/Virt_RASD.c
--- a/src/Virt_RASD.c Tue Nov 27 12:21:52 2007 -0800
+++ b/src/Virt_RASD.c Tue Nov 27 12:22:26 2007 -0800
@@ -247,11 +247,10 @@ static CMPIStatus GetInstance(CMPIInstan
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst;
- char *id = NULL;
+ const char *id = NULL;
uint16_t type;
- id = cu_get_str_path(ref, "InstanceID");
- if (id == NULL) {
+ if (cu_get_str_path(ref, "InstanceID", &id) != CMPI_RC_OK) {
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
"Missing InstanceID");
@@ -274,8 +273,6 @@ static CMPIStatus GetInstance(CMPIInstan
CMPI_RC_ERR_FAILED,
"Unknown instance");
out:
- free(id);
-
return s;
}