summaryrefslogtreecommitdiffstats
path: root/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c')
-rw-r--r--src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
index 1af1bad..3d06a65 100644
--- a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
+++ b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c
@@ -156,7 +156,7 @@ static CMPIStatus LMI_AssociatedProcessorCacheMemoryEnumInstances(
cache_level = get_cache_level(dmi_cpu_caches[j].level);
if (cache_level == LMI_AssociatedProcessorCacheMemory_Level_Other) {
- char other_level[LONG_INT_LEN] = "";
+ char other_level[LONG_INT_LEN];
snprintf(other_level, LONG_INT_LEN, "%u",
dmi_cpu_caches[j].level);
LMI_AssociatedProcessorCacheMemory_Set_OtherLevelDescription(
@@ -238,7 +238,7 @@ static CMPIStatus LMI_AssociatedProcessorCacheMemoryEnumInstances(
cache_level = get_cache_level(sysfs_cpu_caches[i].level);
if (cache_level == LMI_AssociatedProcessorCacheMemory_Level_Other) {
- char other_level[LONG_INT_LEN] = "";
+ char other_level[LONG_INT_LEN];
snprintf(other_level, LONG_INT_LEN, "%u",
sysfs_cpu_caches[i].level);
LMI_AssociatedProcessorCacheMemory_Set_OtherLevelDescription(