git: 9adce1aedd2e - main - loader.efi: variable 'hlist' is uninitialized
Toomas Soome
tsoome at FreeBSD.org
Sun Jan 17 11:47:07 UTC 2021
The branch main has been updated by tsoome:
URL: https://cgit.FreeBSD.org/src/commit/?id=9adce1aedd2e4a97478503b99f6c15f5b19e9f2a
commit 9adce1aedd2e4a97478503b99f6c15f5b19e9f2a
Author: Toomas Soome <tsoome at FreeBSD.org>
AuthorDate: 2021-01-17 11:46:00 +0000
Commit: Toomas Soome <tsoome at FreeBSD.org>
CommitDate: 2021-01-17 11:46:00 +0000
loader.efi: variable 'hlist' is uninitialized
framebuffer.c:481:65: error: variable 'hlist' is uninitialized
---
stand/efi/loader/framebuffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/stand/efi/loader/framebuffer.c b/stand/efi/loader/framebuffer.c
index cfbb2a651a8a..0b23a42b1cdc 100644
--- a/stand/efi/loader/framebuffer.c
+++ b/stand/efi/loader/framebuffer.c
@@ -478,6 +478,7 @@ efi_find_framebuffer(teken_gfx_t *gfx_state)
gfx_state->tg_fb_type = FB_TEXT;
hsize = 0;
+ hlist = NULL;
status = BS->LocateHandle(ByProtocol, &gop_guid, NULL, &hsize, hlist);
if (status == EFI_BUFFER_TOO_SMALL) {
hlist = malloc(hsize);
More information about the dev-commits-src-all
mailing list