summaryrefslogtreecommitdiff
path: root/core/state.c
diff options
context:
space:
mode:
authorChloe M. <chloe@mirocom.org>2026-05-23 18:08:17 -0400
committerChloe M. <chloe@mirocom.org>2026-05-23 18:08:17 -0400
commitdba31ae0adcef456fe2405f7c59afae716b3bef9 (patch)
tree15369568d234137b28c69b8b2d0a7848bef860aa /core/state.c
parent833978f41433c526b9614f8c772896a0bd6e31cc (diff)
core: state: Ensure compiler FSM to zeroed
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core/state.c')
-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;
}