mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.0.0988: warning from Covscan about using NULL pointer
Problem: Warning from Covscan about using NULL pointer. Solution: Add extra check for NULL. (zdohnal)
This commit is contained in:
@@ -1370,7 +1370,8 @@ retry:
|
||||
* Decrypt the read bytes. This is done before checking for
|
||||
* EOF because the crypt layer may be buffering.
|
||||
*/
|
||||
if (cryptkey != NULL && size > 0)
|
||||
if (cryptkey != NULL && curbuf->b_cryptstate != NULL
|
||||
&& size > 0)
|
||||
{
|
||||
if (crypt_works_inplace(curbuf->b_cryptstate))
|
||||
{
|
||||
|
Reference in New Issue
Block a user