]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update code to avoid using potential NULL pointer.
authorEric Dong <eric.dong@intel.com>
Wed, 18 Dec 2013 03:02:52 +0000 (03:02 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 18 Dec 2013 03:02:52 +0000 (03:02 +0000)
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

MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c

index ed06f1c9cd0811706a8e4ca51cd7a9ce3eb78959..41f89ea7f61eabe76fc24654685268225da527ca 100644 (file)
@@ -2366,7 +2366,7 @@ ParseOpCodes (
       //\r
       // Parent statement end tag found, update ParentStatement info.\r
       //\r
-      if (IsStatementOpCode(ScopeOpCode) && ParentStatement->Operand == ScopeOpCode) {\r
+      if (IsStatementOpCode(ScopeOpCode) && (ParentStatement != NULL) && (ParentStatement->Operand == ScopeOpCode)) {\r
         ParentStatement  = ParentStatement->ParentStatement;\r
       }\r
 \r