summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index fa4f2c50..532bff35 100644
--- a/shim.c
+++ b/shim.c
@@ -65,7 +65,7 @@ static EFI_STATUS get_variable (CHAR16 *name, EFI_GUID guid,
char allocate = !!(*size);
efi_status = uefi_call_wrapper(RT->GetVariable, 5, name, &guid,
- &attributes, size, NULL);
+ &attributes, size, buffer);
if (efi_status != EFI_BUFFER_TOO_SMALL || !allocate)
return efi_status;