lexical #2/19, rewrite the `else if'

This commit is contained in:
rlar 2012-07-31 20:38:37 +02:00
parent f2f43bcce7
commit ddebb63425
1 changed files with 7 additions and 5 deletions

View File

@ -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;