1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y: avoid NULL reference. [ruby-dev:43067]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2011-01-18 18:17:29 +00:00
parent c7ec5b5c90
commit a525f4d5fb
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Tue Jan 18 23:31:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
* parse.y: avoid NULL reference. [ruby-dev:43067]
Wed Jan 19 02:54:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
* vsnprintf.c (cvt): set first byte of buf to NUL for the case when

View file

@ -8684,6 +8684,7 @@ assign_in_cond(struct parser_params *parser, NODE *node)
return 0;
}
if (!node->nd_value) return 1;
switch (nd_type(node->nd_value)) {
case NODE_LIT:
case NODE_STR: