summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 02:46:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-08 02:46:39 +0000
commitd0862762558345bf73ef583025e4e51fc595903a (patch)
treea62de6522301e526de6c42a444e9f5094b25af83 /parse.y
parent489e117fdcbcb66a7b5f404f7ecf9bc8427414d6 (diff)
downloadruby-d0862762558345bf73ef583025e4e51fc595903a.tar.gz
ruby-d0862762558345bf73ef583025e4e51fc595903a.tar.xz
ruby-d0862762558345bf73ef583025e4e51fc595903a.zip
* parse.y (string_content): get rid of segfault at empty evstr.
fixed: [ruby-dev:25113] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 5bc347601..2006610b9 100644
--- a/parse.y
+++ b/parse.y
@@ -3599,7 +3599,7 @@ string_content : tSTRING_CONTENT
COND_LEXPOP();
CMDARG_LEXPOP();
/*%%%*/
- $3->flags &= ~NODE_NEWLINE;
+ if ($3) $3->flags &= ~NODE_NEWLINE;
$$ = new_evstr($3);
/*%
$$ = dispatch1(string_embexpr, $3);