misc/wlist.c, minor cleanup
This commit is contained in:
parent
273be42cfd
commit
f84d2d4e44
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue