From a48847269a00673126a29b9067036e7c1675d1be Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 24 Aug 2023 15:29:22 +0200 Subject: [PATCH] clang: ensure all variables intialized Just in case of some wierd kernel bug, which would forget to report these values... --- lib/metadata/vdo_manip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata/vdo_manip.c b/lib/metadata/vdo_manip.c index d51ef2dbf..90f53c946 100644 --- a/lib/metadata/vdo_manip.c +++ b/lib/metadata/vdo_manip.c @@ -543,7 +543,7 @@ static int _compare_mem_table_s(const void *a, const void *b){ static int _get_memory_info(uint64_t *total_mb, uint64_t *available_mb) { - uint64_t anon_pages, mem_available, mem_free, mem_total, shmem, swap_free; + uint64_t anon_pages = 0, mem_available = 0, mem_free = 0, mem_total = 0, shmem = 0, swap_free = 0; uint64_t can_swap; mem_table_t mt[] = { { "AnonPages", &anon_pages },