mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 20:54:29 +02:00
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;
|
UINT8 NewAttribute;
|
||||||
BOOLEAN ReadOnly;
|
BOOLEAN ReadOnly;
|
||||||
|
|
||||||
|
TempDirEnt = NULL;
|
||||||
|
|
||||||
ZeroMem (&ZeroTime, sizeof (EFI_TIME));
|
ZeroMem (&ZeroTime, sizeof (EFI_TIME));
|
||||||
Parent = OFile->Parent;
|
Parent = OFile->Parent;
|
||||||
DirEnt = OFile->DirEnt;
|
DirEnt = OFile->DirEnt;
|
||||||
|
@ -426,6 +426,8 @@ GetRecoveryCapsuleInfo (
|
|||||||
PEI_FILE_HANDLE Handle;
|
PEI_FILE_HANDLE Handle;
|
||||||
UINTN NumberRecoveryCapsules;
|
UINTN NumberRecoveryCapsules;
|
||||||
|
|
||||||
|
Handle = NULL;
|
||||||
|
|
||||||
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
@ -551,6 +553,8 @@ LoadRecoveryCapsule (
|
|||||||
PEI_FILE_HANDLE Handle;
|
PEI_FILE_HANDLE Handle;
|
||||||
UINTN NumberRecoveryCapsules;
|
UINTN NumberRecoveryCapsules;
|
||||||
|
|
||||||
|
Handle = NULL;
|
||||||
|
|
||||||
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
Status = GetNumberRecoveryCapsules (PeiServices, This, &NumberRecoveryCapsules);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user