Skip to content

Commit 9892514

Browse files
committed
Simplify parser_config_init
1 parent b30a8f8 commit 9892514

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ext/json/ext/parser/parser.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,8 +2059,7 @@ static void parser_config_init(JSON_ParserConfig *config, VALUE opts, VALUE self
20592059
}
20602060
else {
20612061
VALUE keywords = rb_ary_join(args.unknown_keywords, rb_utf8_str_new_cstr(", "));
2062-
rb_raise(rb_eArgError, "unknown keywords: %s", RSTRING_PTR(keywords));
2063-
RB_GC_GUARD(keywords);
2062+
rb_raise(rb_eArgError, "unknown keywords: %" PRIsVALUE, keywords);
20642063
}
20652064
}
20662065
}

0 commit comments

Comments
 (0)