core: Add state-wide pointer box field
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -16,7 +16,13 @@ rifle_state_init(struct rifle_state *state, const char *in_path)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ptrbox_init(&state->ptrbox) < 0) {
|
||||
close(state->in_fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (tokbuf_init(&state->tokbuf) < 0) {
|
||||
ptrbox_destroy(&state->ptrbox);
|
||||
close(state->in_fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user