diff options
| author | Chloe M. <chloe@mirocom.org> | 2026-05-23 02:57:50 -0400 |
|---|---|---|
| committer | Chloe M. <chloe@mirocom.org> | 2026-05-23 02:57:50 -0400 |
| commit | 7ca45808939579b427f32641b0dcb9cb585b8e80 (patch) | |
| tree | 8b795d1b1f97009b6b1cb3faf1d21bb0c88cd494 /core/state.c | |
| parent | 74e2e8c772d0f88da6684918f782b37156f10fb3 (diff) | |
core: Add token buffer
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core/state.c')
| -rw-r--r-- | core/state.c | 5 |
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; } |
