diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-04-21 22:28:45 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-24 10:31:32 -0300 |
commit | c68410de526eb39c1b9eb23b43603a61948ef42a (patch) | |
tree | d4023a6b56e5e2bd14ff03f5d625465e71358a90 /src/memfile.c | |
parent | 5421f8444387e810996ebde5af0bcb21fa484be2 (diff) | |
download | rneovim-c68410de526eb39c1b9eb23b43603a61948ef42a.tar.gz rneovim-c68410de526eb39c1b9eb23b43603a61948ef42a.tar.bz2 rneovim-c68410de526eb39c1b9eb23b43603a61948ef42a.zip |
No OOM error condition in some ml_* functions
- ml_add_stack()
- ml_encrypt_data()
- ml_updatechunk()
Diffstat (limited to 'src/memfile.c')
-rw-r--r-- | src/memfile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/memfile.c b/src/memfile.c index 4aad5470d2..497c9ddacd 100644 --- a/src/memfile.c +++ b/src/memfile.c @@ -948,8 +948,6 @@ static int mf_write_block(memfile_T *mfp, bhdr_T *hp, off_t offset, unsigned siz /* Encrypt if 'key' is set and this is a data block. */ if (*mfp->mf_buffer->b_p_key != NUL) { data = ml_encrypt_data(mfp, data, offset, size); - if (data == NULL) - return FAIL; } if ((unsigned)write_eintr(mfp->mf_fd, data, size) != size) |