From 0c16f340a867d1636ef776dae034c48c95720386 Mon Sep 17 00:00:00 2001 From: xli24 Date: Wed, 13 Jan 2010 03:30:59 +0000 Subject: Minor code enhancement. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9724 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint') diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c index ad9eb807de..73d36088a5 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BootOption.c @@ -1062,7 +1062,8 @@ BOpt_GetBootOptions ( FreePool (HiiString); } else { NewLoadContext->Description = AllocateZeroPool (StrSize((UINT16*)LoadOptionPtr)); - StrCpy(NewLoadContext->Description, (UINT16*)LoadOptionPtr); + ASSERT (NewLoadContext->Description != NULL); + StrCpy (NewLoadContext->Description, (UINT16*)LoadOptionPtr); } ASSERT (NewLoadContext->Description != NULL); -- cgit v1.2.3