*: Fix some problems found during review

Still missing: problems in window.c, it should be possible to construct a test
for them.
This commit is contained in:
ZyX
2017-12-15 02:39:46 +03:00
parent 932ea7a0d1
commit c8a5d6181b
3 changed files with 71 additions and 8 deletions

View File

@@ -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);
}
});