summaryrefslogtreecommitdiffstats
path: root/src/dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index b61c551..8957173 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -204,8 +204,9 @@ int check_badblocks(char *mtddev)
}
/* ECC stats available ? */
+ memset (&stat1, 0, sizeof (stat1));
if (eccstats) {
- if (ioctl(fd, ECCGETSTATS, &stat2)) {
+ if (ioctl (fd, ECCGETSTATS, &stat2)) {
perror("ioctl(ECCGETSTATS)");
goto closeall;
}