summaryrefslogtreecommitdiffstats
path: root/bin/chio
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chio')
-rw-r--r--bin/chio/chio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index aaddb68..16e8800 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -1072,6 +1072,7 @@ find_element(char *voltag, uint16_t *et, uint16_t *eu)
/* Read in the changer slots */
if (cp.cp_nslots > 0) {
+ (void) memset(&cesr, 0, sizeof(cesr));
cesr.cesr_element_type = CHET_ST;
cesr.cesr_element_base = 0;
cesr.cesr_element_count = cp.cp_nslots;
OpenPOWER on IntegriCloud