1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 16:40:29 +01:00

38468: wb,we values in gotword() needed assignment in additional case to avoid core dump

Bug introduced by 38248.

Also fix ChangeLog entry for 38248 to correctly reference Src/lex.c
This commit is contained in:
Barton E. Schaefer 2016-05-10 23:17:19 -07:00
parent 597fa5ee5d
commit c712e7511a
2 changed files with 10 additions and 3 deletions

View file

@ -1795,6 +1795,10 @@ gotword(void)
if (zlemetacs >= nwb) {
wb = nwb;
we = nwe;
} else {
wb = zlemetacs + addedx;
if (we < wb)
we = wb;
}
lexflags = 0;
}