lexical #17/19, rewrite

This commit is contained in:
rlar 2012-07-31 20:40:59 +02:00
parent fa9be4336a
commit f990e517b5
1 changed files with 3 additions and 2 deletions

View File

@ -197,11 +197,12 @@ gotchar:
buf[i] = '\0';
newword;
}
append(NULL);
if (cw->wl_prev) {
if (cw) {
append(NULL);
cw->wl_prev->wl_next = NULL;
tfree(cw);
} else {
append(NULL);
cw->wl_word = NULL;
}
goto done;