X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellDebug1CommandsLib%2FBcfg.c;h=73831d267e1cbf249ef9760e94351ee90c01d6b7;hb=e3df6949e7e2a4578660d4079988487a147c91b7;hp=87f2383fad7acffd3bfb8b6709915b0592f9e24e;hpb=5d71a30480bdf7081f72485d6bf48361c244c4d7;p=mirror_edk2.git diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c index 87f2383fad..73831d267e 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c @@ -525,6 +525,7 @@ BcfgAddDebug1( CopyMem (TempByteBuffer, Desc, DescSize); TempByteBuffer += DescSize; + ASSERT (FilePath != NULL); CopyMem (TempByteBuffer, FilePath, FilePathSize); UnicodeSPrint (OptionStr, sizeof(OptionStr), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", TargetLocation);