Explorar o código

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>
Heinrich Schuchardt %!s(int64=4) %!d(string=hai) anos
pai
achega
dfdcd7eff3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/misc.c

+ 1 - 1
lib/misc.c

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