Patch 8.2.3014
Problem: Coverity warns for freeing static string.
Solution: Do not assign static string to pointer. (Dominique Pellé,
closes #8397)
Files: src/vim9execute.c
*** ../vim-8.2.3013/src/vim9execute.c 2021-06-16 22:24:37.282477710 +0200
--- src/vim9execute.c 2021-06-17 13:53:18.483562906 +0200
***************
*** 1469,1478 ****
}
else
line = ((char_u **)ufunc->uf_lines.ga_data)[iptr->isn_lnum - 1];
- if (line == NULL)
- line = (char_u *)"[empty]";
! do_debug(line);
debug_context = NULL;
if (end_lnum > iptr->isn_lnum)
--- 1469,1476 ----
}
else
line = ((char_u **)ufunc->uf_lines.ga_data)[iptr->isn_lnum - 1];
! do_debug(line == NULL ? (char_u *)"[empty]" : line);
debug_context = NULL;
if (end_lnum > iptr->isn_lnum)
*** ../vim-8.2.3013/src/version.c 2021-06-16 22:24:37.282477710 +0200
--- src/version.c 2021-06-17 13:53:25.023545797 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 3014,
/**/
--
A)bort, R)etry, D)o it right this time
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///