]> code.delx.au - refind/blobdiff - refind/gpt.c
Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / refind / gpt.c
index 6ce2ba0fe9e0d3a87382822a53abe64313739c83..c9b2ac20885601532e21b2533f5dc9f65ce7c020 100644 (file)
@@ -118,7 +118,7 @@ EFI_STATUS ReadGptData(REFIT_VOLUME *Volume, GPT_DATA **Data) {
    EFI_STATUS Status = EFI_SUCCESS;
    UINT64     BufferSize;
    UINTN      i;
-   GPT_DATA   *GptData; // Temporary holding storage; transferred to *Data later
+   GPT_DATA   *GptData = NULL; // Temporary holding storage; transferred to *Data later
 
    if ((Volume == NULL) || (Data == NULL))
       return EFI_INVALID_PARAMETER;