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

vm.c: initialize line always

* vm.c (rb_source_location): reset line to 0 if no location is
  found.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-10-31 00:17:41 +00:00
parent 7e9a86ea40
commit 954224f3c5

1
vm.c
View file

@ -1124,6 +1124,7 @@ rb_source_location(int *pline)
return cfp->iseq->body->location.path;
}
else {
if (pline) *pline = 0;
return 0;
}
}