aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2014-10-22 17:31:08 +0100
committerGravatar sin <sin@2f30.org>2014-10-22 17:31:08 +0100
commit1c467fce7adc8a3fd703c934ab3892be3c73715e (patch)
tree122bca1365e4c83c634a53526c88b612943dfdeb /noice.c
parent0e214e23b71453ecae331f51917cf6b0411784fd (diff)
downloadnnn-1c467fce7adc8a3fd703c934ab3892be3c73715e.tar.gz
Style fix
Diffstat (limited to 'noice.c')
-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);