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 15127263ca
commit f9399fd5a3

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