mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
MdeModulePkg/SMM: 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
79655e2768
commit
b40c64ec25
@ -152,6 +152,7 @@ SmiManage (
|
||||
|
||||
PERF_FUNCTION_BEGIN ();
|
||||
mSmiManageCallingDepth++;
|
||||
WillReturn = FALSE;
|
||||
Status = EFI_NOT_FOUND;
|
||||
ReturnStatus = Status;
|
||||
if (HandlerType == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user