diff options
author | Mike Maslenkin <mike.maslenkin@gmail.com> | 2025-01-09 21:05:12 +0300 |
---|---|---|
committer | Ard Biesheuvel <workofard@gmail.com> | 2025-01-29 17:20:57 +0100 |
commit | 0f12a5f722cee18b55de291d3e4bc9b4248ba9b8 (patch) | |
tree | d881a9ad86951ec75a9d62ae3f85f95edc5b7979 | |
parent | a5cb67fb8d443c5a0ee25440c0c686a198543bc3 (diff) | |
download | edk2-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.c | 2 |
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
//
|