1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

clang: ensure all variables intialized

Just in case of some wierd kernel bug, which would forget
to report these values...
This commit is contained in:
Zdenek Kabelac 2023-08-24 15:29:22 +02:00
parent 6a0e54f84f
commit a48847269a

View File

@ -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) 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; uint64_t can_swap;
mem_table_t mt[] = { mem_table_t mt[] = {
{ "AnonPages", &anon_pages }, { "AnonPages", &anon_pages },