diff src/ex_eval.c @ 30071:6a8c2ff5b2ef v9.0.0373

patch 9.0.0373: Coverity warns for NULL check and unused return value Commit: https://github.com/vim/vim/commit/a5348f241bbbb6d5db863d666fa9ca72fc95037a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 4 11:42:22 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Sep 2022 12:45:05 +0200
parents 228154db3ce6
children 327bca7b70ea
line wrap: on
line diff
--- 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);