diff options
author | ZyX <kp-pav@yandex.ru> | 2017-05-20 03:51:19 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-05-20 03:51:19 +0300 |
commit | d9239181afcbd3230640b83bf3f971034dabb1ab (patch) | |
tree | 217352939143b129d4e6de416e8667e1af66405e | |
parent | 98baea63ff85296a0f47e4fbbe68f6a95b1df112 (diff) | |
download | rneovim-d9239181afcbd3230640b83bf3f971034dabb1ab.tar.gz rneovim-d9239181afcbd3230640b83bf3f971034dabb1ab.tar.bz2 rneovim-d9239181afcbd3230640b83bf3f971034dabb1ab.zip |
eval: Fix V507
-rw-r--r-- | src/nvim/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 982dc2841a..ca1d50c1af 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21094,9 +21094,9 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, // Do not want errors such as E724 here. emsg_off++; char *tofree = encode_tv2string(&argvars[i], NULL); - char *s = tofree; emsg_off--; - if (s != NULL) { + if (tofree != NULL) { + char *s = tofree; char buf[MSG_BUF_LEN]; if (vim_strsize((char_u *)s) > MSG_BUF_CLEN) { trunc_string((char_u *)s, (char_u *)buf, MSG_BUF_CLEN, |