summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-18 14:23:40 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-18 14:23:40 +0900
commite306bfaf94f72d15e8133810b0d79e5e7acbf92c (patch)
tree6e4bff1099f432ef7f48f18c986c258ed7fadd3a /src/parse.y
parent685b4d1c84d4816abeebd6fe9866582436c391ca (diff)
downloadmruby-e306bfaf94f72d15e8133810b0d79e5e7acbf92c.tar.gz
mruby-e306bfaf94f72d15e8133810b0d79e5e7acbf92c.zip
failed to initialize source string
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y
index d790fa8d1..41363b49e 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -4720,6 +4720,7 @@ mrb_parse_nstring(mrb_state *mrb, const char *s, size_t len)
p = mrb_parser_new(mrb);
if (!p) return 0;
+ p->s = s;
p->send = s + len;
mrb_parser_parse(p);