# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1242411431 25200
# Node ID d5155c4b965ddc209e37a59ddfa8de6f649a51b0
# Parent 4ac0b029df21346d5f958d1b5a29c7360b7850ae
Work around MOF typo in VSSnapshotServiceCapabilities
Also set array to NULL before reallocating.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 4ac0b029df21 -r d5155c4b965d src/Virt_VirtualSystemSnapshotServiceCapabilities.c
--- a/src/Virt_VirtualSystemSnapshotServiceCapabilities.c Mon May 11 16:47:15 2009 -0300
+++ b/src/Virt_VirtualSystemSnapshotServiceCapabilities.c Fri May 15 11:17:11 2009 -0700
@@ -62,9 +62,13 @@
element = (uint16_t)APPLY_SNAPSHOT;
CMSetArrayElementAt(array, 1, &element, CMPI_uint16);
- CMSetProperty(inst, "AsynchronousMethodsSupported",
+ /* There is a typo in the mof - the attribute name in the mof is:
+ AynchronousMethodsSupported, not AsynchronousMethodsSupported.
+ Making a note incase this changes later. */
+ CMSetProperty(inst, "AynchronousMethodsSupported",
(CMPIValue *)&array, CMPI_uint16A);
-
+
+ array = NULL;
array = CMNewArray(broker, 1, CMPI_uint16, &s);
if ((s.rc != CMPI_RC_OK) || (array == NULL))
goto out;