aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-01-30 23:22:29 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:44:03 +0300
commit256a5d25226505c56c067d35d715f1a184cd05ee (patch)
tree0c888f6fe8401c9460b31aa2e277acee1c195740
parent68e58444b48fc34c9a7c262883750778fbd935d7 (diff)
downloadrneovim-256a5d25226505c56c067d35d715f1a184cd05ee.tar.gz
rneovim-256a5d25226505c56c067d35d715f1a184cd05ee.tar.bz2
rneovim-256a5d25226505c56c067d35d715f1a184cd05ee.zip
encode: Add a hint for static analyzer that cur_tv is not NULL
-rw-r--r--src/nvim/encode.c1
1 files changed, 1 insertions, 0 deletions
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; \