summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/GenericBdsLib
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-25 05:20:44 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-25 05:20:44 +0000
commit7490e2bed8141f4edce22a4facf5cba4e2f93129 (patch)
tree8ea7123c845afe3029c16ad7c041dda7a6235261 /IntelFrameworkModulePkg/Library/GenericBdsLib
parent052019e1fa1ca604778da724e139d1c17abada42 (diff)
downloadedk2-platforms-7490e2bed8141f4edce22a4facf5cba4e2f93129.tar.xz
GenericBdsLib: Remove a un-reasonable ASSERT when BdsLibVariableToOption() returns NULL because it is possible for BdsLibVariableToOption() to return NULL if the boot option variable does not exist or the boot option is not active.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9805 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
index 351dfd5913..66b9d2bb2d 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
@@ -572,9 +572,9 @@ BdsLibBuildOptionFromVar (
}
Option = BdsLibVariableToOption (BdsCommonOptionList, OptionName);
- ASSERT (Option != NULL);
- Option->BootCurrent = OptionOrder[Index];
-
+ if (Option != NULL) {
+ Option->BootCurrent = OptionOrder[Index];
+ }
}
FreePool (OptionOrder);