summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 337ba00..4e3f763 100644
--- a/parse.c
+++ b/parse.c
@@ -377,7 +377,11 @@ static char **parser_advance(struct parser_state *state, enum token_type type, s
*/
static int parse_root(struct parser_state *state, const char *path) {
struct bfs_ctx *ctx = state->ctx;
- return DARRAY_PUSH(&ctx->paths, &path);
+ int ret = DARRAY_PUSH(&ctx->paths, &path);
+ if (ret != 0) {
+ perror("DARRAY_PUSH()");
+ }
+ return ret;
}
/**