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:
parent
7e9a86ea40
commit
954224f3c5
1 changed files with 1 additions and 0 deletions
1
vm.c
1
vm.c
|
@ -1124,6 +1124,7 @@ rb_source_location(int *pline)
|
|||
return cfp->iseq->body->location.path;
|
||||
}
|
||||
else {
|
||||
if (pline) *pline = 0;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue