From 532691c8ba90e5022174503ab0781322c6f79cab Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 14 Oct 2011 19:21:13 +0000 Subject: ShellPkg: Add checking for memory allocation and pointer returns from functions. signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12540 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellInstall1CommandsLib') diff --git a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c index 01f04a5472..ed13dba42f 100644 --- a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c +++ b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c @@ -978,7 +978,7 @@ ShellCommandRunBcfgInstall ( ShellStatus = BcfgAddInstall1( CurrentOperation.Number1, CurrentOperation.FileName, - CurrentOperation.Description, + CurrentOperation.Description==NULL?L"":CurrentOperation.Description, CurrentOperation.Order, Length / sizeof(CurrentOperation.Order[0]), CurrentOperation.Target, -- cgit v1.2.3