mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0168: Coverity warning for assigning NULL to an option
Problem: Coverity warning for assigning NULL to an option. Solution: Use empty string instead of NULL.
This commit is contained in:
@@ -625,7 +625,11 @@ call_def_function(
|
||||
--ectx.ec_stack.ga_len;
|
||||
tv = STACK_TV_BOT(0);
|
||||
if (tv->v_type == VAR_STRING)
|
||||
{
|
||||
s = tv->vval.v_string;
|
||||
if (s == NULL)
|
||||
s = (char_u *)"";
|
||||
}
|
||||
else if (tv->v_type == VAR_NUMBER)
|
||||
n = tv->vval.v_number;
|
||||
else
|
||||
|
Reference in New Issue
Block a user