From 7ca45808939579b427f32641b0dcb9cb585b8e80 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sat, 23 May 2026 02:57:50 -0400 Subject: core: Add token buffer Signed-off-by: Chloe M. --- core/state.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/state.c') 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; } -- cgit v1.2.3