]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c
ShellPkg: Add checking for memory allocation and pointer returns from functions.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Bcfg.c
index de2ce2bfc3c28f8571d3cae7a164f7ac6a0e4687..ffd05b8ba3fc7565aa2d49317ec72027f8cf49c4 100644 (file)
@@ -978,7 +978,7 @@ ShellCommandRunBcfg (
           ShellStatus = BcfgAddDebug1(\r
             CurrentOperation.Number1,\r
             CurrentOperation.FileName,\r
-            CurrentOperation.Description,\r
+            CurrentOperation.Description==NULL?L"":CurrentOperation.Description,\r
             CurrentOperation.Order,\r
             Length / sizeof(CurrentOperation.Order[0]),\r
             CurrentOperation.Target,\r