summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Maslenkin <mike.maslenkin@gmail.com>2025-01-09 21:05:12 +0300
committerArd Biesheuvel <workofard@gmail.com>2025-01-29 17:20:57 +0100
commit0f12a5f722cee18b55de291d3e4bc9b4248ba9b8 (patch)
treed881a9ad86951ec75a9d62ae3f85f95edc5b7979
parenta5cb67fb8d443c5a0ee25440c0c686a198543bc3 (diff)
downloadedk2-0f12a5f722cee18b55de291d3e4bc9b4248ba9b8.tar.gz
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 <mike.maslenkin@gmail.com>
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Handle.c2
1 files changed, 2 insertions, 0 deletions
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
//