mirror of https://github.com/acidanthera/audk.git
FatPkg: Fix potentially uninitialized variable
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1559 Initializes the variable to prevent an uninitialized variable warning in Visual Studio with C4701 enabled. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
parent
1c0f3c3e41
commit
00ccd99d46
|
@ -303,6 +303,8 @@ FatSetFileInfo (
|
|||
UINT8 NewAttribute;
|
||||
BOOLEAN ReadOnly;
|
||||
|
||||
TempDirEnt = NULL;
|
||||
|
||||
ZeroMem (&ZeroTime, sizeof (EFI_TIME));
|
||||
Parent = OFile->Parent;
|
||||
DirEnt = OFile->DirEnt;
|
||||
|
|
|
@ -426,6 +426,8 @@ GetRecoveryCapsuleInfo (
|
|||
PEI_FILE_HANDLE Handle;
|
||||
UINTN NumberRecoveryCapsules;
|
||||
|
||||
Handle = NULL;
|
||||
|
||||
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
@ -551,6 +553,8 @@ LoadRecoveryCapsule (
|
|||
PEI_FILE_HANDLE Handle;
|
||||
UINTN NumberRecoveryCapsules;
|
||||
|
||||
Handle = NULL;
|
||||
|
||||
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
|
Loading…
Reference in New Issue