Skip to content

Commit

Permalink
StandaloneMmPkg: Initialize 'WillReturn' variable
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
LiuZhiguang001 authored and mergify[bot] committed May 30, 2024
1 parent b40c64e commit 30b6d08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions StandaloneMmPkg/Core/Mmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ MmiManage (
EFI_STATUS Status;

mMmiManageCallingDepth++;
WillReturn = FALSE;
Status = EFI_NOT_FOUND;
ReturnStatus = Status;
if (HandlerType == NULL) {
Expand Down

0 comments on commit 30b6d08

Please sign in to comment.