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:
Mike Maslenkin 2025-01-09 21:05:12 +03:00 committed by Ard Biesheuvel
parent a5cb67fb8d
commit 0f12a5f722
1 changed files with 2 additions and 0 deletions

View File

@ -1107,6 +1107,8 @@ CoreOpenProtocol (
return EFI_INVALID_PARAMETER;
}
Prot = NULL;
//
// Lock the protocol database
//