ext/oj/object.c in oj-2.14.4 vs ext/oj/object.c in oj-2.14.5

- old
+ new

@@ -774,10 +774,11 @@ oj_object_parse(int argc, VALUE *argv, VALUE self) { struct _ParseInfo pi; pi.options = oj_default_options; pi.handler = Qnil; + pi.err_class = Qnil; oj_set_object_callbacks(&pi); if (T_STRING == rb_type(*argv)) { return oj_pi_parse(argc, argv, &pi, 0, 0, 1); } else { @@ -789,9 +790,10 @@ oj_object_parse_cstr(int argc, VALUE *argv, char *json, size_t len) { struct _ParseInfo pi; pi.options = oj_default_options; pi.handler = Qnil; + pi.err_class = Qnil; oj_set_strict_callbacks(&pi); pi.end_hash = end_hash; pi.start_hash = start_hash; pi.hash_set_cstr = hash_set_cstr; pi.hash_set_num = hash_set_num;