Skip to content

Commit

Permalink
Supress warning that variable may be used uninitialized with ripper b…
Browse files Browse the repository at this point in the history
…uilding
  • Loading branch information
S-H-GAMELINKS authored and nobu committed Jul 20, 2023
1 parent dd8372b commit 76ea8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.y
Expand Up @@ -11335,7 +11335,7 @@ id_is_var(struct parser_params *p, ID id)
static VALUE
new_regexp(struct parser_params *p, VALUE re, VALUE opt, const YYLTYPE *loc)
{
VALUE src = 0, err;
VALUE src = 0, err = 0;
int options = 0;
if (ripper_is_node_yylval(p, re)) {
src = RNODE(re)->nd_cval;
Expand Down

0 comments on commit 76ea8ec

Please sign in to comment.