mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
202c9c8d38
commit
8c5983b739
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user