mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.0.0373: Coverity warns for NULL check and unused return value
Problem: Coverity warns for NULL check and unused return value. Solution: Remove the NULL check, it was already checked earlier. Add (void) to ignore the return value.
This commit is contained in:
@@ -925,7 +925,7 @@ cmd_is_name_only(char_u *arg)
|
||||
}
|
||||
else if (*p == '$')
|
||||
++p;
|
||||
get_name_len(&p, &alias, FALSE, FALSE);
|
||||
(void)get_name_len(&p, &alias, FALSE, FALSE);
|
||||
}
|
||||
name_only = ends_excmd2(arg, skipwhite(p));
|
||||
vim_free(alias);
|
||||
|
Reference in New Issue
Block a user