summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state.c b/core/state.c
index ef9d522..fe9f9fa 100644
--- a/core/state.c
+++ b/core/state.c
@@ -18,6 +18,7 @@ state_init(struct cescal_state *state, const char *pathname)
return -1;
}
+ memset(state, 0, sizeof(*state));
state->in_fd = open(pathname, O_RDONLY);
if (state->in_fd < 0) {
return -1;
@@ -38,7 +39,6 @@ state_init(struct cescal_state *state, const char *pathname)
return -1;
}
- state->pass = 0;
return 0;
}