aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-08 11:10:13 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-08 11:11:52 +0800
commit03828536fa14cbbc39e3e3a182ad9b7901da5da7 (patch)
treeb180117c0dd67c93103fc18801412fe43cf2cff0
parentc2441a8fb950b23088f08db4ceb10c0d25e613d6 (diff)
downloadrneovim-03828536fa14cbbc39e3e3a182ad9b7901da5da7.tar.gz
rneovim-03828536fa14cbbc39e3e3a182ad9b7901da5da7.tar.bz2
rneovim-03828536fa14cbbc39e3e3a182ad9b7901da5da7.zip
vim-patch:8.2.4075: test failures
Problem: Test failures. Solution: Change check for NULL pointer. https://github.com/vim/vim/commit/78a70533c3707aa50cbf998c7807221945aa9787 :export is N/A. Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--src/nvim/eval/userfunc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index 11ed537210..7e20a298dd 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -2137,7 +2137,6 @@ void ex_function(exarg_T *eap)
char *theline;
char *line_to_free = NULL;
char c;
- int saved_did_emsg;
bool saved_wait_return = need_wait_return;
char *name = NULL;
char *p;
@@ -2229,13 +2228,9 @@ void ex_function(exarg_T *eap)
eap->skip = true;
}
- if (name == NULL) {
- goto ret_free;
- }
-
// An error in a function call during evaluation of an expression in magic
// braces should not cause the function not to be defined.
- saved_did_emsg = did_emsg;
+ const int saved_did_emsg = did_emsg;
did_emsg = false;
//