From 0cc26b741deffefe181981022321549a3ed2bcff Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Feb 2016 14:36:24 -0500 Subject: Fix a typo that caused a segfault with missing arguments. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index aeac611..2fc4fd8 100644 --- a/parse.c +++ b/parse.c @@ -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; -- cgit v1.2.3