From be137f3601610491d4265a4f9c87bf52fef28d66 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Dec 2007 07:44:03 +0000 Subject: * iseq.c (find_line_no): return 0 if not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- iseq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 6ad0e8d25a..f316edab30 100644 --- a/iseq.c +++ b/iseq.c @@ -559,6 +559,9 @@ find_line_no(rb_iseq_t *iseq, unsigned long pos) if (entry) { return entry->line_no; } + else { + return 0; + } } static unsigned short -- cgit v1.2.3