Skip to content

Commit

Permalink
Fix another seg fault in SAJ parser
Browse files Browse the repository at this point in the history
This was missed in ohler55#799.
  • Loading branch information
stanhu committed Aug 17, 2022
1 parent 72d5565 commit f573136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/oj/saj2.c
Expand Up @@ -315,7 +315,7 @@ static void add_big_key(ojParser p) {
}

static void add_big_key_loc(ojParser p) {
rb_funcall((VALUE)p->ctx,
rb_funcall(((Delegate)p->ctx)->handler,
oj_add_value_id,
4,
rb_funcall(rb_cObject, oj_bigdecimal_id, 1, rb_str_new(buf_str(&p->buf), buf_len(&p->buf))),
Expand Down

0 comments on commit f573136

Please sign in to comment.