Johannes Schindelin 61838a3152 ncurses: fix crash when TERM refers to an unknown terminal
A but that was recently introduced into the 6.x development branch of
ncurses causes free()d data to be reused by mistake, leading to a crash.

You can verify this by setting TERM to, say, `msys` and then running
`bash.exe --login -i`.

This fixes https://github.com/git-for-windows/git/issues/222

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-06-26 13:45:01 +00:00
..