comparison src/list.c @ 29175:755ab148288b v8.2.5107

patch 8.2.5107: some callers of rettv_list_alloc() check for not OK Commit: https://github.com/vim/vim/commit/93a1096fe48e12095544924adb267e3b8a16b221 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 16 11:42:09 2022 +0100 patch 8.2.5107: some callers of rettv_list_alloc() check for not OK Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Jun 2022 12:45:03 +0200
parents 175eacde28b8
children 34151eb6ae25
comparison
equal deleted inserted replaced
29174:a13f0046b5ef 29175:755ab148288b
1760 emsg(_(e_invalid_range)); 1760 emsg(_(e_invalid_range));
1761 return; 1761 return;
1762 } 1762 }
1763 1763
1764 vimlist_remove(l, item, item2); 1764 vimlist_remove(l, item, item2);
1765 if (rettv_list_alloc(rettv) != OK) 1765 if (rettv_list_alloc(rettv) == FAIL)
1766 return; 1766 return;
1767 1767
1768 rl = rettv->vval.v_list; 1768 rl = rettv->vval.v_list;
1769 1769
1770 if (l->lv_with_items > 0) 1770 if (l->lv_with_items > 0)