lexical #2/19, rewrite the `else if'
This commit is contained in:
parent
f2f43bcce7
commit
ddebb63425
|
|
@ -185,11 +185,13 @@ gotchar:
|
|||
if (i) {
|
||||
buf[i] = '\0';
|
||||
cw->wl_word = copy(buf);
|
||||
} else if (cw->wl_prev) {
|
||||
cw->wl_prev->wl_next = NULL;
|
||||
tfree(cw);
|
||||
} else {
|
||||
cw->wl_word = NULL;
|
||||
} else {
|
||||
if (cw->wl_prev) {
|
||||
cw->wl_prev->wl_next = NULL;
|
||||
tfree(cw);
|
||||
} else {
|
||||
cw->wl_word = NULL;
|
||||
}
|
||||
}
|
||||
goto done;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue