summaryrefslogtreecommitdiff
path: root/libguile/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/error.c')
-rw-r--r--libguile/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/error.c b/libguile/error.c
index 850bf5b7d..fa409bcef 100644
--- a/libguile/error.c
+++ b/libguile/error.c
@@ -74,7 +74,7 @@ void
scm_error (SCM key, const char *subr, const char *message, SCM args, SCM rest)
{
SCM arg_list;
- if (scm_gc_heap_lock)
+ if (scm_gc_running_p)
{
/* The error occured during GC --- abort */
fprintf (stderr, "Error in %s during GC: %s\n",