Light has uploaded this change for review.

View Change

ich_descriptors.c: Initialize structures with memset

Initialize structures with memset so that they do not produce garbage
values if the fields are not initialized later.

Change-Id: I6e5bc84c6199a0731db0a9c8ef56f1215686dab2
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
---
M ich_descriptors.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/63/62763/1
diff --git a/ich_descriptors.c b/ich_descriptors.c
index 256224d..8914dfc 100644
--- a/ich_descriptors.c
+++ b/ich_descriptors.c
@@ -1361,6 +1361,7 @@

struct ich_descriptors desc;
enum ich_chipset cs = CHIPSET_ICH_UNKNOWN;
+ memset(&desc, 0, sizeof(desc));
int ret = read_ich_descriptors_from_dump(dump, len, &cs, &desc);
if (ret) {
msg_pdbg("%s():%d, returned with value %d.\n",

To view, visit change 62763. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6e5bc84c6199a0731db0a9c8ef56f1215686dab2
Gerrit-Change-Number: 62763
Gerrit-PatchSet: 1
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-MessageType: newchange