diff options
author | Derrick Pallas <derrick@pallas.us> | 2019-02-02 16:17:12 -0800 |
---|---|---|
committer | Derrick Pallas <derrick@pallas.us> | 2019-02-02 16:17:12 -0800 |
commit | d29bf5b4fc0ada552a95f592401bf37dd442aa3e (patch) | |
tree | ea5eb9ff752f1294efa3e9d2744af50c4ad31cd6 | |
parent | 3c5b1419a278dfb192666b33197dc182c670290d (diff) |
builtin/f_match: call onig_error_code_to_str with einfo correctly
-rw-r--r-- | src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |