summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 00:17:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 00:17:41 (GMT)
commit954224f3c53a66004c7171c139b1a45668d91858 (patch)
tree7a4da97582ab8580863b0a89f4ec0a743dcce0d9 /vm.c
parent7e9a86ea408a89ee1d595b5b844e2963a29ae836 (diff)
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
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 22ade68..d79d38a 100644
--- a/vm.c
+++ b/vm.c
@@ -1124,6 +1124,7 @@ rb_source_location(int *pline)
return cfp->iseq->body->location.path;
}
else {
+ if (pline) *pline = 0;
return 0;
}
}