The branch main has been updated by tsoome:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9adce1aedd2e4a97478503b99f6c15f5b19e9f2a

commit 9adce1aedd2e4a97478503b99f6c15f5b19e9f2a
Author:     Toomas Soome <[email protected]>
AuthorDate: 2021-01-17 11:46:00 +0000
Commit:     Toomas Soome <[email protected]>
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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "[email protected]"

Reply via email to