aboutsummaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-04-21 22:28:45 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-24 10:31:32 -0300
commitc68410de526eb39c1b9eb23b43603a61948ef42a (patch)
treed4023a6b56e5e2bd14ff03f5d625465e71358a90 /src/memfile.c
parent5421f8444387e810996ebde5af0bcb21fa484be2 (diff)
downloadrneovim-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.c2
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)