diff options
author | Javier Lopez <graulopezjavier@gmail.com> | 2022-07-02 11:24:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 09:24:58 -0700 |
commit | 108368bdd5546319952767325c1a28de537fec75 (patch) | |
tree | 9c26cdf75300ea68a7966c75da6e76f20c3e64d7 | |
parent | e11f3655fb3bbedc29e496db26a25e6c83d25baf (diff) | |
download | rneovim-108368bdd5546319952767325c1a28de537fec75.tar.gz rneovim-108368bdd5546319952767325c1a28de537fec75.tar.bz2 rneovim-108368bdd5546319952767325c1a28de537fec75.zip |
fix(coverity): 353827 unnecessary null check #19209
Previous checks make sure the index is not out of bounds. Therefore jmp
is never NULL.
-rw-r--r-- | src/nvim/mark.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |