aboutsummaryrefslogtreecommitdiff
path: root/src/ops.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/ops.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/ops.c')
-rw-r--r--src/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 97e629117e..2bb649a488 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -793,7 +793,7 @@ get_register (
if (copy) {
if (reg->y_size == 0) {
reg->y_array = NULL;
- } else
+ } else {
reg->y_array = xmalloc(reg->y_size * sizeof(char_u *));
for (linenr_T i = 0; i < reg->y_size; ++i) {
reg->y_array[i] = vim_strsave(y_current->y_array[i]);