summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-20 20:16:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-20 20:16:35 -0700
commit035649f083a3de9e73701023751ebff477ba70ec (patch)
treea6145d21209886133fd69415757b60277745254b
parent31f809ccd645926abf0cff0de5a1b99b71da0d25 (diff)
downloadtxr-035649f083a3de9e73701023751ebff477ba70ec.tar.gz
txr-035649f083a3de9e73701023751ebff477ba70ec.tar.bz2
txr-035649f083a3de9e73701023751ebff477ba70ec.zip
at-exit-do-not-call: wrong return value.
* sysif.c (at_exit_do_not_call): Reverse Boolean polarity of return value to match documentation.
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
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)