mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Update code to avoid using potential NULL pointer.
Signed-off-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14999 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e7831c9070
commit
5fdd2a818b
@ -2366,7 +2366,7 @@ ParseOpCodes (
|
||||
//
|
||||
// Parent statement end tag found, update ParentStatement info.
|
||||
//
|
||||
if (IsStatementOpCode(ScopeOpCode) && ParentStatement->Operand == ScopeOpCode) {
|
||||
if (IsStatementOpCode(ScopeOpCode) && (ParentStatement != NULL) && (ParentStatement->Operand == ScopeOpCode)) {
|
||||
ParentStatement = ParentStatement->ParentStatement;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user