summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 0529ee3..d0fe80e 100644
--- a/vm.c
+++ b/vm.c
@@ -345,7 +345,10 @@ uc_vm_frame_dump(uc_vm_t *vm, uc_callframe_t *frame)
fprintf(stderr, " [%zu] <%p> %s ",
i, (void *)ref, uc_vm_format_val(vm, v));
- if (ref->closed) {
+ if (!ref) {
+ fprintf(stderr, "{unresolved}\n");
+ }
+ else if (ref->closed) {
fprintf(stderr, "{closed} %s\n",
uc_vm_format_val(vm, ref->value));
}