ruby-changes:53827
From: duerst <ko1@a...>
Date: Wed, 28 Nov 2018 06:23:16 +0900 (JST)
Subject: [ruby-changes:53827] duerst:r66045 (trunk): correctly handle return value from create_sequence_node()
duerst 2018-11-28 06:23:11 +0900 (Wed, 28 Nov 2018) New Revision: 66045 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66045 Log: correctly handle return value from create_sequence_node() In function node_extended_grapheme_cluster(), store and test return value from create_sequence_node(). Never forget this! Modified files: trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 66044) +++ regparse.c (revision 66045) @@ -5912,7 +5912,8 @@ node_extended_grapheme_cluster(Node** np https://github.com/ruby/ruby/blob/trunk/regparse.c#L5912 if (r != 0) goto err; seq[3] = NULL_NODE; - create_sequence_node(&list2, seq); + r = create_sequence_node(&list2, seq); + if (r != 0) goto err; } tmp = onig_node_new_alt(list2, alt); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/