0
0
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:
Bram Moolenaar
2022-09-04 11:42:22 +01:00
parent 5fbbec180b
commit a5348f241b
3 changed files with 5 additions and 4 deletions

View File

@@ -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);