misc/wlist.c, minor cleanup

This commit is contained in:
rlar 2016-03-22 11:22:53 +01:00
parent 273be42cfd
commit f84d2d4e44
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ wl_reverse(wordlist *wl)
wordlist *t = wl->wl_next; wordlist *t = wl->wl_next;
wl->wl_next = wl->wl_prev; wl->wl_next = wl->wl_prev;
wl->wl_prev = t; wl->wl_prev = t;
if (!t) if (!wl->wl_prev)
return (wl); return (wl);
wl = t; wl = wl->wl_prev;
} }
} }