From 954224f3c53a66004c7171c139b1a45668d91858 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Oct 2015 00:17:41 +0000 Subject: [PATCH] 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 --- vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vm.c b/vm.c index 22ade689fc..d79d38a8d9 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; } }