From 4a9f303429a01a0dda441a03c1c08fb9ac5dd5da Mon Sep 17 00:00:00 2001 From: David Teigland Date: Dec 12 2023 19:52:51 +0000 Subject: sanlock: fix direct_next_free missing init --- diff --git a/src/direct.c b/src/direct.c index 7e00c52..f3ea7d1 100644 --- a/src/direct.c +++ b/src/direct.c @@ -860,7 +860,7 @@ int direct_next_free(struct task *task, char *path) struct leader_record lr; struct sync_disk sd; uint64_t sector_nr; - int sector_size, sector_count, datalen, align_size; + int sector_size = 0, sector_count, datalen, align_size = 0; int rv; memset(&sd, 0, sizeof(struct sync_disk));