Undefined Status in LibGetVariableAndSize()

GrowBuffer() expects that parameter Status is initialized.
LibGetVariableAndSize() currently passes random data from the stack.

Initialize variable Status.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2021-03-19 17:14:48 +01:00
parent 59fd1e9d1d
commit dfdcd7eff3

View file

@ -246,7 +246,7 @@ LibGetVariableAndSize (
OUT UINTN *VarSize
)
{
EFI_STATUS Status;
EFI_STATUS Status = EFI_SUCCESS;
VOID *Buffer;
UINTN BufferSize;