summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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;