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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user