Skip to content
Myr

builtin/f_match: call onig_error_code_to_str with einfo correctly

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Derrick Pallas · committed by Derrick Pallas · parent 3c5b141 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/builtin.c+1 added-1 removed
933 unmodified lines
934 } else if (onigret == ONIG_MISMATCH) {935 break;936 } else { /* Error */937 UChar ebuf[ONIG_MAX_ERROR_MESSAGE_LEN];938 onig_error_code_to_str(ebuf, onigret, einfo);938 onig_error_code_to_str(ebuf, onigret, &einfo);939 jv_free(result);940 result = jv_invalid_with_msg(jv_string_concat(jv_string("Regex failure: "),941 jv_string((char*)ebuf)));942 break;
870 unmodified lines