From 20179e0ec729eba70cdf91fafdf21b8412fb45e4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 20 Jun 2019 20:16:35 -0700 Subject: at-exit-do-not-call: wrong return value. * sysif.c (at_exit_do_not_call): Reverse Boolean polarity of return value to match documentation. --- sysif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysif.c') diff --git a/sysif.c b/sysif.c index 632805fd..1cce32db 100644 --- a/sysif.c +++ b/sysif.c @@ -165,7 +165,7 @@ val at_exit_do_not_call(val func) { val old = at_exit_list; at_exit_list = remq(func, old, nil); - return tnil(old == at_exit_list); + return tnil(old != at_exit_list); } static void at_exit_handler(void) -- cgit v1.2.3