summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 9d97c0c..083c418 100644
--- a/vm.c
+++ b/vm.c
@@ -807,7 +807,7 @@ uc_vm_get_error_context(uc_vm *vm)
size_t offset, i;
/* skip to first non-native function call frame */
- for (i = vm->callframes.count; i > 0; i--)
+ for (i = vm->callframes.count; i > 1; i--)
if (vm->callframes.entries[i - 1].closure)
break;