aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/encode.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-12-15 02:39:46 +0300
committerZyX <kp-pav@yandex.ru>2017-12-15 02:39:46 +0300
commitc8a5d6181b19009e170a3497a30ce35cf288bddf (patch)
tree663484a9b37471520f222736a5216b052e1ce280 /src/nvim/eval/encode.c
parent932ea7a0d1d19288fad719afd52e9cbeb924c4c2 (diff)
downloadrneovim-c8a5d6181b19009e170a3497a30ce35cf288bddf.tar.gz
rneovim-c8a5d6181b19009e170a3497a30ce35cf288bddf.tar.bz2
rneovim-c8a5d6181b19009e170a3497a30ce35cf288bddf.zip
*: Fix some problems found during review
Still missing: problems in window.c, it should be possible to construct a test for them.
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r--src/nvim/eval/encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c
index 9f16b78976..39897aa9ab 100644
--- a/src/nvim/eval/encode.c
+++ b/src/nvim/eval/encode.c
@@ -209,7 +209,7 @@ bool encode_vim_list_to_buf(const list_T *const list, size_t *const ret_len,
return false;
}
len++;
- if (TV_LIST_ITEM_TV(li)->vval.v_string != 0) {
+ if (TV_LIST_ITEM_TV(li)->vval.v_string != NULL) {
len += STRLEN(TV_LIST_ITEM_TV(li)->vval.v_string);
}
});