From 1a348f8ed82bce1d7fb56c907c7508e10914299f Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 13 Aug 2015 21:56:36 +0300 Subject: ops: Fix “conditional … depends on unitialized …” error in op_yank_reg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nvim/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ops.c') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 9424e82578..5ba1d8b2f5 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2356,7 +2356,7 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append) reg->y_type = yanktype; /* set the yank register type */ reg->y_width = 0; reg->y_array = xcalloc(yanklines, sizeof(char_u *)); - set_yreg_additional_data(reg, NULL); + reg->additional_data = NULL; reg->timestamp = os_time(); y_idx = 0; -- cgit