]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
ShellPkg: Add checking for memory allocation and pointer returns from functions.
[mirror_edk2.git] / ShellPkg / Library / UefiShellInstall1CommandsLib / Bcfg.c
index 01f04a5472416dcf1cc12f70f68a73645e313164..ed13dba42f31065f2a46b1676eff784601fe2c03 100644 (file)
@@ -978,7 +978,7 @@ ShellCommandRunBcfgInstall (
           ShellStatus = BcfgAddInstall1(\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