From 0f12a5f722cee18b55de291d3e4bc9b4248ba9b8 Mon Sep 17 00:00:00 2001 From: Mike Maslenkin Date: Thu, 9 Jan 2025 21:05:12 +0300 Subject: MdeModulePkg: fix warning about uninitialized variable Handle.c:1302:24: error: 'Prot' may be used uninitialized in this function [-Werror=maybe-uninitialized] *Interface = Prot->Interface; ~~~~^~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mike Maslenkin --- MdeModulePkg/Core/Dxe/Hand/Handle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Core/Dxe/Hand/Handle.c b/MdeModulePkg/Core/Dxe/Hand/Handle.c index b5ff3fdcd1..93e69eea73 100644 --- a/MdeModulePkg/Core/Dxe/Hand/Handle.c +++ b/MdeModulePkg/Core/Dxe/Hand/Handle.c @@ -1107,6 +1107,8 @@ CoreOpenProtocol ( return EFI_INVALID_PARAMETER; } + Prot = NULL; + // // Lock the protocol database // -- cgit