From 25daa4eb000e9196c1be7a6ffae56fc3d88b0654 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Mon, 29 May 2006 20:31:39 +0000 Subject: [PATCH] (scm_ithrow): When looking for the jmpbuf, first test that we have a pair before accessing its cdr. Thanks to Bill Schottstaedt! --- libguile/throw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/throw.c b/libguile/throw.c index e2b9526c7..12c90b8d8 100644 --- a/libguile/throw.c +++ b/libguile/throw.c @@ -736,7 +736,8 @@ scm_ithrow (SCM key, SCM args, int noreturn SCM_UNUSED) abort (); for (wind_goal = scm_i_dynwinds (); - !scm_is_eq (SCM_CDAR (wind_goal), jmpbuf); + (!scm_is_pair (SCM_CAR (wind_goal)) + || !scm_is_eq (SCM_CDAR (wind_goal), jmpbuf)); wind_goal = SCM_CDR (wind_goal)) ;