diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-27 14:36:24 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-27 14:36:24 -0500 |
commit | 0cc26b741deffefe181981022321549a3ed2bcff (patch) | |
tree | 0d6afc4717bd6fb40be2ea5daedc1ef52644b6ec /parse.c | |
parent | ba967212e94110986e4b7512a75a9e8aa519fd19 (diff) | |
download | bfs-0cc26b741deffefe181981022321549a3ed2bcff.tar.xz |
Fix a typo that caused a segfault with missing arguments.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -343,7 +343,7 @@ static struct expr *parse_nullary_test(struct parser_state *state, eval_fn *eval static struct expr *parse_unary_test(struct parser_state *state, eval_fn *eval) { const char *arg = state->args[0]; const char *value = state->args[1]; - if (!*value) { + if (!value) { pretty_error(state->cmdline->stderr_colors, "error: %s needs a value.\n", arg); return NULL; |