From b7b0dca207fd89af69dac1eda05e5cd2adbe8cc1 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 7 Jul 2009 10:17:16 +0000 Subject: Fix some issues reported by source static analysis tools. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8785 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr') diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c index eda86fdcba..80af8e1803 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c @@ -273,7 +273,6 @@ CallBootManager ( if (StrStr (Option->Description, DESCRIPTION_FLOPPY) != NULL) { BootStringNumber = Option->Description + StrLen (DESCRIPTION_FLOPPY) + 1; Option->Description = GetStringById (STRING_TOKEN (STR_DESCRIPTION_FLOPPY)); - } else if (StrStr (Option->Description, DESCRIPTION_DVD) != NULL) { BootStringNumber = Option->Description + StrLen (DESCRIPTION_DVD) + 1; Option->Description = GetStringById (STRING_TOKEN (STR_DESCRIPTION_DVD)); @@ -299,6 +298,7 @@ CallBootManager ( Option->Description = GetStringById (STRING_TOKEN (STR_DESCRIPTION_NON_BLOCK)); } + ASSERT (Option->Description != NULL); if (StrnCmp (BootStringNumber, L"0", 1) != 0) { StrCat (Option->Description, L" "); StrCat (Option->Description, BootStringNumber); -- cgit v1.2.3