diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-20 15:02:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-20 15:02:42 +0200 |
commit | 66250c932e8a0e3c43e7c7c7b1dbede040b9c508 (patch) | |
tree | 485324d99b96692841c3f44ad0f76b4c67be4d49 /src/evalfunc.c | |
parent | 93ad14710bdf77591f927a2b244bba6a8cbc7706 (diff) |
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491
Problem: Vim9: crash when compiling heredoc lines start with comment.
Solution: Skip over NULL pointers. Do not remove comment and empty lines
when fetching function lines. (closes #6743)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index c759afcd20..c8747e2c14 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2198,13 +2198,12 @@ execute_redir_str(char_u *value, int value_len) * Called by do_cmdline() to get the next line. * Returns allocated string, or NULL for end of function. */ - static char_u * get_list_line( int c UNUSED, void *cookie, int indent UNUSED, - int do_concat UNUSED) + getline_opt_T options UNUSED) { listitem_T **p = (listitem_T **)cookie; listitem_T *item = *p; |