diff options
author | Eric Dong <eric.dong@intel.com> | 2013-12-18 03:02:52 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-12-18 03:02:52 +0000 |
commit | 5fdd2a818bc34ac9316adcc26522ca06bcce700b (patch) | |
tree | 98c57752e2b76859fd1a0aa54956b642c56aa29d /MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | |
parent | e7831c9070bc832f7ef8eee58c99a66653a17d56 (diff) | |
download | edk2-platforms-5fdd2a818bc34ac9316adcc26522ca06bcce700b.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index ed06f1c9cd..41f89ea7f6 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -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;
}
|