mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
StandaloneMmPkg: Initialize 'WillReturn' variable
The local variable 'WillReturn' was being used without prior initialization in some code paths. This patch ensures that 'WillReturn' is properly initialized to prevent undefined behavior. Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
This commit is contained in:
parent
b40c64ec25
commit
30b6d08e27
1 changed files with 1 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ MmiManage (
|
|||
EFI_STATUS Status;
|
||||
|
||||
mMmiManageCallingDepth++;
|
||||
WillReturn = FALSE;
|
||||
Status = EFI_NOT_FOUND;
|
||||
ReturnStatus = Status;
|
||||
if (HandlerType == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue