Mercurial > vim
comparison src/evalbuffer.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 | 8207581dd068 |
children | 827d9f2b7a71 |
comparison
equal
deleted
inserted
replaced
29174:a13f0046b5ef | 29175:755ab148288b |
---|---|
678 int filtered = FALSE; | 678 int filtered = FALSE; |
679 int sel_buflisted = FALSE; | 679 int sel_buflisted = FALSE; |
680 int sel_bufloaded = FALSE; | 680 int sel_bufloaded = FALSE; |
681 int sel_bufmodified = FALSE; | 681 int sel_bufmodified = FALSE; |
682 | 682 |
683 if (rettv_list_alloc(rettv) != OK) | 683 if (rettv_list_alloc(rettv) == FAIL) |
684 return; | 684 return; |
685 | 685 |
686 if (in_vim9script() | 686 if (in_vim9script() |
687 && check_for_opt_buffer_or_dict_arg(argvars, 0) == FAIL) | 687 && check_for_opt_buffer_or_dict_arg(argvars, 0) == FAIL) |
688 return; | 688 return; |