From 108368bdd5546319952767325c1a28de537fec75 Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Sat, 2 Jul 2022 11:24:58 -0500 Subject: [PATCH] fix(coverity): 353827 unnecessary null check #19209 Previous checks make sure the index is not out of bounds. Therefore jmp is never NULL. --- src/nvim/mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/mark.c b/src/nvim/mark.c index de668458f0..2402ea3035 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -280,7 +280,7 @@ fmark_T *get_jumplist(win_T *win, int count) } break; } - return jmp != NULL ? &jmp->fmark : NULL; + return &jmp->fmark; } /// Get mark in "count" position in the |changelist| relative to the current index.