X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellLevel2CommandsLib%2FVol.c;h=53b7770dfe12073e9a2d05e1e5ac3f0d2ce43179;hp=e9cd0d098244aff95dd0b63096a1ca2f26884068;hb=33c031ee2092282a069ce07d30202082ceaf61fe;hpb=6b825919f1c16b07b5cac7fc5e298fbeb530d888 diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c index e9cd0d0982..53b7770dfe 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c @@ -97,6 +97,8 @@ HandleVol( SysInfo); } + ASSERT(SysInfo != NULL); + if (Delete) { StrCpy ((CHAR16 *) SysInfo->VolumeLabel, L""); SysInfo->Size = SIZE_OF_EFI_FILE_SYSTEM_INFO + StrSize(SysInfo->VolumeLabel);