Fix unitialized variable warning in valgrind

Change-Id: I91e70d67671a8f7289b734407011380b6b97238a
Этот коммит содержится в:
David Yat Sin
2023-01-24 18:32:47 +00:00
коммит произвёл Kent Russell
родитель efcc9b275b
Коммит fb8f42233d
+2
Просмотреть файл
@@ -539,6 +539,8 @@ static int get_cpu_cache_info(const char *prefix, struct proc_cpuinfo *cpuinfo,
fscanf_dec(path, &this_cache->CacheLevel);
/* CacheType */
snprintf(path, 256, "%s/index%d/type", prefix, idx);
memset(str, 0, sizeof(str));
fscanf_str(path, str);
if (!strcmp(str, "Data"))
this_cache->CacheType.ui32.Data = 1;