Merge pull request #66 from jlxip/unstable

limine-install: Initialize lb_size so GCC doesn't warn
This commit is contained in:
mint 2021-02-10 02:14:31 +01:00 committed by GitHub
commit 5d75f5213c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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