From 256a5d25226505c56c067d35d715f1a184cd05ee Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 30 Jan 2016 23:22:29 +0300 Subject: encode: Add a hint for static analyzer that cur_tv is not NULL --- src/nvim/encode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/encode.c b/src/nvim/encode.c index 84aaed53cb..fded609483 100644 --- a/src/nvim/encode.c +++ b/src/nvim/encode.c @@ -608,6 +608,7 @@ scope int encode_vim_to_##name(firstargtype firstargname, typval_T *const tv, \ break; \ } \ } \ + assert(cur_tv != NULL); \ if (name##_convert_one_value(firstargname, &mpstack, cur_tv, copyID, \ objname) == FAIL) { \ goto encode_vim_to_##name##_error_ret; \ -- cgit