summaryrefslogtreecommitdiff
path: root/core/state.c
diff options
context:
space:
mode:
authorChloe M. <chloe@mirocom.org>2026-05-23 02:57:50 -0400
committerChloe M. <chloe@mirocom.org>2026-05-23 02:57:50 -0400
commit7ca45808939579b427f32641b0dcb9cb585b8e80 (patch)
tree8b795d1b1f97009b6b1cb3faf1d21bb0c88cd494 /core/state.c
parent74e2e8c772d0f88da6684918f782b37156f10fb3 (diff)
core: Add token buffer
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core/state.c')
-rw-r--r--core/state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/state.c b/core/state.c
index 7d80acd..912508c 100644
--- a/core/state.c
+++ b/core/state.c
@@ -23,6 +23,11 @@ state_init(struct cescal_state *state, const char *pathname)
return -1;
}
+ if (tokbuf_init(&state->tokbuf) < 0) {
+ close(state->in_fd);
+ return -1;
+ }
+
return 0;
}