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 85bd232..aa4e175 100644
--- a/parse.c
+++ b/parse.c
@@ -2070,7 +2070,7 @@ static struct expr *parse_regex(struct parser_state *state, int flags, int arg2)
int err = regcomp(expr->regex, expr->sdata, state->regex_flags | flags);
if (err != 0) {
- char *str = xregerror(err, expr->regex);
+ char *str = xregerror(err, NULL);
if (str) {
parse_error(state, "${blu}%s${rs} ${bld}%s${rs}: %s.\n", expr->argv[0], expr->argv[1], str);
free(str);