ruby-changes:40316
From: nobu <ko1@a...>
Date: Sat, 31 Oct 2015 09:17:48 +0900 (JST)
Subject: [ruby-changes:40316] nobu:r52397 (trunk): vm.c: initialize line always
nobu 2015-10-31 09:17:41 +0900 (Sat, 31 Oct 2015) New Revision: 52397 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52397 Log: vm.c: initialize line always * vm.c (rb_source_location): reset line to 0 if no location is found. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 52396) +++ vm.c (revision 52397) @@ -1124,6 +1124,7 @@ rb_source_location(int *pline) https://github.com/ruby/ruby/blob/trunk/vm.c#L1124 return cfp->iseq->body->location.path; } else { + if (pline) *pline = 0; return 0; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/