mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
a5cb67fb8d
commit
0f12a5f722
|
@ -1107,6 +1107,8 @@ CoreOpenProtocol (
|
|||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Prot = NULL;
|
||||
|
||||
//
|
||||
// Lock the protocol database
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue