diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-10 12:53:45 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-10 12:53:45 -0500 |
commit | 0879126bb44aa9761a920946f35f5aa697717445 (patch) | |
tree | cac70ef04178a87986de9388a9acd46ab92c21c2 /src/parse.c | |
parent | f98a1c4a1cf61ff7d6483388ca1fac365fb0b31b (diff) | |
download | bfs-0879126bb44aa9761a920946f35f5aa697717445.tar.xz |
Try to report I/O errors earlier and only once
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index 74f160c..47f4bec 100644 --- a/src/parse.c +++ b/src/parse.c @@ -481,6 +481,7 @@ static void init_print_expr(struct parser_state *state, struct bfs_expr *expr) { expr_set_always_true(expr); expr->cost = PRINT_COST; expr->cfile = state->ctx->cout; + expr->path = NULL; } /** @@ -512,6 +513,7 @@ static int expr_open(struct parser_state *state, struct bfs_expr *expr, const ch } expr->cfile = dedup; + expr->path = path; return 0; fail: |