From f84d2d4e44f8c546fd44a26953680313403bb74f Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 22 Mar 2016 11:22:53 +0100 Subject: [PATCH] misc/wlist.c, minor cleanup --- src/misc/wlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/wlist.c b/src/misc/wlist.c index 9f028265c..099218a59 100644 --- a/src/misc/wlist.c +++ b/src/misc/wlist.c @@ -154,9 +154,9 @@ wl_reverse(wordlist *wl) wordlist *t = wl->wl_next; wl->wl_next = wl->wl_prev; wl->wl_prev = t; - if (!t) + if (!wl->wl_prev) return (wl); - wl = t; + wl = wl->wl_prev; } }