Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 11:47:07 GMT
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9adce1aedd2e - main - loader.efi: variable 'hlist' is uninitialized
Message-ID:  <202101171147.10HBl7pG057388@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tsoome:

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

commit 9adce1aedd2e4a97478503b99f6c15f5b19e9f2a
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2021-01-17 11:46:00 +0000
Commit:     Toomas Soome <tsoome@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101171147.10HBl7pG057388>