0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.108

Problem:    Useless check for NULL when calling vim_free().
Solution:   Remove the check. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2011-02-01 13:48:53 +01:00
parent 5e3d6ca435
commit 3c2d6534ef
4 changed files with 6 additions and 7 deletions

View File

@@ -1886,8 +1886,7 @@ SaveConsoleBuffer(
cb->BufferSize.X = cb->Info.dwSize.X;
cb->BufferSize.Y = cb->Info.dwSize.Y;
NumCells = cb->BufferSize.X * cb->BufferSize.Y;
if (cb->Buffer != NULL)
vim_free(cb->Buffer);
vim_free(cb->Buffer);
cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
if (cb->Buffer == NULL)
return FALSE;