aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 7dab646..3019dad 100644
--- a/noice.c
+++ b/noice.c
@@ -516,7 +516,7 @@ forgethist(void)
{
struct history *hist;
- while (!SLIST_EMPTY(&histhead)) {
+ while (SLIST_EMPTY(&histhead) == 0) {
hist = SLIST_FIRST(&histhead);
SLIST_REMOVE_HEAD(&histhead, entry);
free(hist);