:: commit 35866614671b666a37157725c3964596de38bba0

mintsuki <mintsuki@protonmail.com> — 2022-11-19 05:35

parents: 409c05c42d

disk: Fix issue where _p struct was not zeroed out in create_disk_index()

diff --git a/common/drivers/disk.s2.c b/common/drivers/disk.s2.c
index 37b34732..ef3d0506 100644
--- a/common/drivers/disk.s2.c
+++ b/common/drivers/disk.s2.c
@@ -648,8 +648,8 @@ fail:
 
         volume_index[volume_index_i++] = block;
 
-        struct volume _p;
         for (int part = 0; ; part++) {
+            struct volume _p = {0};
 
             int ret = part_get(&_p, block, part);
 
tab: 248 wrap: offon