mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
vim-patch:7.4.2256
Problem: Coverity complains about null pointer check.
Solution: Remove wrong and superfluous error check.
db249f26ed
This commit is contained in:
@@ -4860,7 +4860,10 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
|
||||
|
||||
}
|
||||
*name = NUL;
|
||||
*arg = p + 1;
|
||||
if (*p != NUL) { // just in case
|
||||
p++;
|
||||
}
|
||||
*arg = p;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user