limine-install: Initialize lb_size so GCC doesn't warn

This commit is contained in:
JlXip 2021-02-10 02:10:14 +01:00 committed by mintsuki
parent 33058217fa
commit 767be2c09c

View File

@ -300,7 +300,7 @@ int main(int argc, char *argv[]) {
int gpt = 0;
struct gpt_table_header gpt_header;
uint64_t lb_guesses[] = { 512, 4096 };
uint64_t lb_size;
uint64_t lb_size = 0;
for (size_t i = 0; i < sizeof(lb_guesses) / sizeof(uint64_t); i++) {
device_read(&gpt_header, lb_guesses[i], sizeof(struct gpt_table_header));
if (!strncmp(gpt_header.signature, "EFI PART", 8)) {