Skip to content

Commit

Permalink
[Cherry-Pick] 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 apop5 committed Oct 26, 2024
1 parent a546e5d commit 2d3d9e1
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 2d3d9e1

Please sign in to comment.