summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-04 11:42:22 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-04 11:42:22 +0100
commita5348f241bbbb6d5db863d666fa9ca72fc95037a (patch)
tree5395b780659a206cb73f8080b2b59ee0f433a96b /src/ex_eval.c
parent5fbbec180b623cd6ebfc9528be6fa70b4cf664d4 (diff)
patch 9.0.0373: Coverity warns for NULL check and unused return valuev9.0.0373
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.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 61d288157d..2f31b3e1c5 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -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);