
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1250287987 25200 # Node ID 9dec453226dadbd358fdd87cbbaffe0528d25308 # Parent 6f6393788fc52d942a53fdf2b93cf2a83a0559e4 Be sure to initialize msg in storage_vol_rasd_to_res() Some versions of gcc will complain about this variable being uninitialized. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 6f6393788fc5 -r 9dec453226da src/Virt_ResourcePoolConfigurationService.c --- a/src/Virt_ResourcePoolConfigurationService.c Fri Aug 14 13:30:43 2009 -0700 +++ b/src/Virt_ResourcePoolConfigurationService.c Fri Aug 14 15:13:07 2009 -0700 @@ -695,7 +695,7 @@ { uint16_t int_val; const char *val; - const char *msg; + const char *msg = NULL; if (cu_get_u16_prop(inst, "FormatType", &int_val) != CMPI_RC_OK) { msg = "StorageVolumeRASD FormatType field not valid";