Add the missing check for NULL pointer before use it.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10140 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2010-03-01 07:56:48 +00:00
parent 202c9c8d38
commit 8c5983b739
1 changed files with 1 additions and 0 deletions

View File

@ -621,6 +621,7 @@ ParseOpCodes (
// Create a new Form Map for this FormSet
//
CurrentForm = AllocateZeroPool (sizeof (FORM_BROWSER_FORM));
ASSERT (CurrentForm != NULL);
CurrentForm->Signature = FORM_BROWSER_FORM_SIGNATURE;
InitializeListHead (&CurrentForm->StatementListHead);