Patch 9.0.1311
Problem: Coverity warns for using a NULL pointer.
Solution: Use "empty_option" instead of NULL.
Files: src/option.c
*** ../vim-9.0.1310/src/option.c 2023-02-14 13:07:14.415465757 +0000
--- src/option.c 2023-02-15 14:21:21.576141315 +0000
***************
*** 1990,1995 ****
--- 1990,1997 ----
// Set the new value.
*(char_u **)(varp) = newval;
+ if (newval == NULL)
+ *(char_u **)(varp) = empty_option;
#if defined(FEAT_EVAL)
if (!starting
*** ../vim-9.0.1310/src/version.c 2023-02-14 21:56:39.000752403 +0000
--- src/version.c 2023-02-15 14:22:07.004105877 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1311,
/**/
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
/// 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 ///