summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c3
1 files changed, 3 insertions, 0 deletions
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