mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
vim-patch:8.2.4075: test failures
Problem: Test failures.
Solution: Change check for NULL pointer.
78a70533c3
:export is N/A.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
c2441a8fb9
commit
03828536fa
@ -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;
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user