mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1311: Coverity warns for using a NULL pointer
Problem: Coverity warns for using a NULL pointer. Solution: Use "empty_option" instead of NULL.
This commit is contained in:
@@ -1990,6 +1990,8 @@ do_set_option_string(
|
||||
|
||||
// Set the new value.
|
||||
*(char_u **)(varp) = newval;
|
||||
if (newval == NULL)
|
||||
*(char_u **)(varp) = empty_option;
|
||||
|
||||
#if defined(FEAT_EVAL)
|
||||
if (!starting
|
||||
|
Reference in New Issue
Block a user