]> git.proxmox.com Git - mirror_edk2.git/commit
IntelFsp2Pkg/GenCfgOpt.py: Coverity scan flags issues.
authorChasel Chiu <chasel.chiu@intel.com>
Fri, 7 Feb 2020 08:33:36 +0000 (16:33 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Feb 2020 09:21:22 +0000 (09:21 +0000)
commit7a38ad07d0b15c9380d1671074aef20e096f3106
treefc12d0957d9be9e8f6360f8088480b62cf997ef4
parenta67efa3b22113cc9b52f8e56e50466d6da0ab11e
IntelFsp2Pkg/GenCfgOpt.py: Coverity scan flags issues.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1706

Issue was: invalid_operation: Invalid operation on
null-like value "Base".
Fixed it by initializing Base to 0 before entering
while loop.

Test:
Compared script output before and after this patch and
the result is identical.

Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
IntelFsp2Pkg/Tools/GenCfgOpt.py