From e3667576595f16efbadaad18876a6e8f6e5777a2 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 19 Sep 2010 12:20:58 +0200 Subject: [PATCH] default-trap-handler bugfix * module/system/vm/trap-state.scm (default-trap-handler): Fix thinko. --- module/system/vm/trap-state.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/system/vm/trap-state.scm b/module/system/vm/trap-state.scm index 024bb2091..4277dd333 100644 --- a/module/system/vm/trap-state.scm +++ b/module/system/vm/trap-state.scm @@ -42,9 +42,10 @@ (thunk))) (define (default-trap-handler frame idx trap-name) - (if %default-trap-handler - ((fluid-ref %default-trap-handler) frame idx trap-name) - (warn "Trap with no handler installed" frame idx trap-name))) + (let ((default-handler (fluid-ref %default-trap-handler))) + (if default-handler + (default-handler frame idx trap-name) + (warn "Trap with no handler installed" frame idx trap-name)))) (define-record index