diff options
Diffstat (limited to 'src/thread.c')
-rw-r--r-- | src/thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c index 1ff485f0f78..f5b04e4b231 100644 --- a/src/thread.c +++ b/src/thread.c @@ -632,10 +632,9 @@ run_thread (void *state) { /* Put a dummy catcher at top-level so that handlerlist is never NULL. This is important since handlerlist->nextfree holds the freelist which would otherwise leak every time we unwind back to top-level. */ - struct handler *c; handlerlist_sentinel = xzalloc (sizeof (struct handler)); handlerlist = handlerlist_sentinel->nextfree = handlerlist_sentinel; - PUSH_HANDLER (c, Qunbound, CATCHER); + struct handler *c = push_handler (Qunbound, CATCHER); eassert (c == handlerlist_sentinel); handlerlist_sentinel->nextfree = NULL; handlerlist_sentinel->next = NULL; |