mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02: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
@ -174,6 +174,7 @@ MmiManage (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
mMmiManageCallingDepth++;
|
mMmiManageCallingDepth++;
|
||||||
|
WillReturn = FALSE;
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
ReturnStatus = Status;
|
ReturnStatus = Status;
|
||||||
if (HandlerType == NULL) {
|
if (HandlerType == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user