From d29bf5b4fc0ada552a95f592401bf37dd442aa3e Mon Sep 17 00:00:00 2001 From: Derrick Pallas Date: Sat, 2 Feb 2019 16:17:12 -0800 Subject: [PATCH] builtin/f_match: call onig_error_code_to_str with einfo correctly --- src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.c b/src/builtin.c index baa68915..c56dca9e 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -935,7 +935,7 @@ static jv f_match(jq_state *jq, jv input, jv regex, jv modifiers, jv testmode) { break; } else { /* Error */ UChar ebuf[ONIG_MAX_ERROR_MESSAGE_LEN]; - onig_error_code_to_str(ebuf, onigret, einfo); + onig_error_code_to_str(ebuf, onigret, &einfo); jv_free(result); result = jv_invalid_with_msg(jv_string_concat(jv_string("Regex failure: "), jv_string((char*)ebuf)));