summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-13 09:24:25 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-13 09:24:25 +0000
commit945e3aed0f238c5c3e401a7793d1e8133c85d7c7 (patch)
tree795d48b88522dfde240caa76be1202df92d70e98 /MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
parent0ad78d0779bb2c805a3db4b265b0adb2010134ee (diff)
downloadedk2-platforms-945e3aed0f238c5c3e401a7793d1e8133c85d7c7.tar.xz
Add a check for CreateQuestion may be return NULL.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8308 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
index 737aaf7315..745e20d9ea 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
@@ -1247,7 +1247,8 @@ ParseOpCodes (
case EFI_IFR_ONE_OF_OP:
case EFI_IFR_NUMERIC_OP:
CurrentStatement = CreateQuestion (OpCodeData, FormSet, CurrentForm);
-
+ ASSERT(CurrentStatement != NULL);
+
CurrentStatement->Flags = ((EFI_IFR_ONE_OF *) OpCodeData)->Flags;
Value = &CurrentStatement->HiiValue;