0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

Fix a few compiler warnings. Fix crash with encrypted undo file.

This commit is contained in:
Bram Moolenaar
2010-06-06 14:20:26 +02:00
parent 860cae1cec
commit 56be950094
10 changed files with 37 additions and 6 deletions

View File

@@ -413,6 +413,11 @@ bf_key_init(password)
key = sha256_key(password);
keylen = (int)STRLEN(key);
if (keylen == 0)
{
EMSG(_("E831: bf_key_init() called with empty password"));
return;
}
for (i = 0; i < 256; ++i)
{
sbx[0][i] = sbi[0][i];