summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
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;
}
}