From 3c3b7844b95879bcfd86677df4cfac3edb0fb132 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 26 May 2019 21:45:46 -0400 Subject: lint --- src/nvim/eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index aa4a3da9e5..deaed17926 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -13558,9 +13558,8 @@ static void f_readfile(typval_T *argvars, typval_T *rettv, FunPtr fptr) static void return_register(int regname, typval_T *rettv) { - char_u buf[2] = {0, 0}; + char_u buf[2] = { regname, 0 }; - buf[0] = (char_u)regname; rettv->v_type = VAR_STRING; rettv->vval.v_string = vim_strsave(buf); } -- cgit