diff options
author | Nick Neisen <nwneisen@gmail.com> | 2018-05-16 19:17:56 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-17 08:49:14 +0200 |
commit | 32df42549a49124976e1993218cd560833777482 (patch) | |
tree | c266250a95de154ecb571dbac41ad05e7d372e83 | |
parent | b44b533ada401f0e468a07272f3b5d10f78bba5a (diff) | |
download | rneovim-32df42549a49124976e1993218cd560833777482.tar.gz rneovim-32df42549a49124976e1993218cd560833777482.tar.bz2 rneovim-32df42549a49124976e1993218cd560833777482.zip |
coverity/13700: ignore failed win_split()
win_split() does EMSG for all failure cases, so we don't need to log it.
Easiest thing to do here is ignore the return value (otherwise we need
to do some cleanup and might require some refactoring. jumpto_tag() can
deal with a failed split, so it's no big deal.
-rw-r--r-- | src/nvim/tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index f23465e501..ba2727f0d7 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -2407,8 +2407,8 @@ jumpto_tag ( /* If it was a CTRL-W CTRL-] command split window now. For ":tab tag" * open a new tab page. */ if (postponed_split || cmdmod.tab != 0) { - win_split(postponed_split > 0 ? postponed_split : 0, - postponed_split_flags); + (void)win_split(postponed_split > 0 ? postponed_split : 0, + postponed_split_flags); RESET_BINDING(curwin); } |