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

This commit is contained in:
mintsuki 2022-11-19 06:35:41 +01:00
parent 690c3ccee9
commit 1c0db86965
1 changed files with 1 additions and 1 deletions

View File

@ -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);