diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-07 10:17:16 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-07 10:17:16 +0000 |
commit | b7b0dca207fd89af69dac1eda05e5cd2adbe8cc1 (patch) | |
tree | b24c7048a34079eb0267562b4355067a42f2d5fc /IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr | |
parent | ee09c93f45f0bf6f3d8fcc51bc99d87baf248525 (diff) | |
download | edk2-platforms-b7b0dca207fd89af69dac1eda05e5cd2adbe8cc1.tar.xz |
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
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.c | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|