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

This commit is contained in:
JlXip 2021-02-10 02:10:14 +01:00
parent 898407760f
commit ddcbfeb4c7

View File

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