diff options
author | William Langford <wlangfor@gmail.com> | 2014-10-06 21:48:17 -0400 |
---|---|---|
committer | William Langford <wlangfor@gmail.com> | 2014-10-06 21:48:56 -0400 |
commit | 3411167c03fba129d44a0e7c9699767c9e8fd5cd (patch) | |
tree | 44dd2a8726329721e70fddc7d0ffd4dbf3854752 | |
parent | 85f0e30c817631c2c76d8b5e35443509283c638e (diff) |
Properly call onig_error_code_to_str
Fix #585
-rw-r--r-- | builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -615,7 +615,7 @@ static jv f_match(jq_state *jq, jv input, jv regex, jv modifiers, jv testmode) { options, ONIG_ENCODING_UTF8, ONIG_SYNTAX_PERL_NG, &einfo); if (onigret != ONIG_NORMAL) { 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(input); jv_free(regex); return jv_invalid_with_msg(jv_string_concat(jv_string("Regex failure: "), |