summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-03-13 21:59:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-15 13:05:17 +0000
commitee1739cd004e656a8f8a890e6ee9094f770770ec (patch)
treeff8dc4b6089c4628fa77f5afa976a96b8e5e6d25 /util
parenta8305e74a273dc9805b2a688abcf3857ea962110 (diff)
downloadcoreboot-ee1739cd004e656a8f8a890e6ee9094f770770ec.tar.xz
util/inteltool: powermgt: initialize register size variables
Initialize register size variables to prevent segfaults. Change-Id: Ib89bf6f7c7582efdea1c54d1316ed8f33a87cfcc Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39513 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/inteltool/powermgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/inteltool/powermgt.c b/util/inteltool/powermgt.c
index 9933b04891..2dfc05d64f 100644
--- a/util/inteltool/powermgt.c
+++ b/util/inteltool/powermgt.c
@@ -669,7 +669,7 @@ static const io_register_t i63xx_pm_registers[] = {
int print_pmbase(struct pci_dev *sb, struct pci_access *pacc)
{
- size_t i, size;
+ size_t i, size = 0;
uint16_t pmbase;
const io_register_t *pm_registers;
uint64_t pwrmbase_phys = 0;