]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Tools/GenCfgOpt.py
IntelFsp2Pkg/GenCfgOpt.py: Coverity scan flags issues.
[mirror_edk2.git] / IntelFsp2Pkg / Tools / GenCfgOpt.py
index 2fa7582d857952b1eee1b7126d250d9ce62891ad..d1d6901bc3672ce62fd1d559eef22d2063290189 100644 (file)
@@ -1,6 +1,6 @@
 ## @ GenCfgOpt.py\r
 #\r
-# Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -439,6 +439,7 @@ EndList
 \r
         MaxAlign = 32   #Default align to 32, but if there are 64 bit unit, align to 64\r
         SizeAlign = 0   #record the struct max align\r
+        Base = 0        #Starting offset of sub-structure.\r
         while len(DscLines):\r
             DscLine  = DscLines.pop(0).strip()\r
             Handle   = False\r