Heidi Eckhart wrote:
+ if (base)
+ inst = get_typed_instance(broker,
+ CLASSNAME(ref),
+ base,
+ NAMESPACE(ref));
CMSetProperty(inst, "InstanceID", inst_id, CMPI_chars);
CMSetProperty(inst, "PropertyPolicy", &policy, CMPI_uint16);
Should there be an else statement here? If the if statement fails, then
an instance isn't created. CMSetProperty() would be trying to get the
value of a NULL inst, which would most likely fail.
--
Kaitlin Rupert
IBM Linux Technology Center
karupert(a)us.ibm.com