From 8c01a99b8472f231e746c7eb9bade0ddddf2b445 Mon Sep 17 00:00:00 2001 From: "Gao, Liming" Date: Fri, 27 Jun 2014 19:15:35 +0000 Subject: [PATCH] OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Fix GCC44 build failure. Initialize the input parameter FwhInstance in function GetFvbInstance(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Gao, Liming" Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15601 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c | 1 + 1 file changed, 1 insertion(+) diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c index 7d26c41ccc..7827b72be1 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c @@ -197,6 +197,7 @@ Returns: { EFI_FW_VOL_INSTANCE *FwhRecord; + *FwhInstance = NULL; if (Instance >= Global->NumFv) { return EFI_INVALID_PARAMETER; } -- 2.39.2