summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-03-06 19:31:39 +0100
committerChristian Brabandt <cb@256bit.org>2024-03-06 20:43:05 +0100
commitaf7ae8160041e2d17c56945381e9370e7178e596 (patch)
treedcce3967b862f336c2586d6742f449b6ad4d2682 /src/ex_cmds2.c
parenta72d1be5a9984709fc66f460b443ad4a38506113 (diff)
patch 9.1.0152: Coverity complains about ignoring return valuev9.1.0152
Problem: Coverity complains about ignoring return value of win_split() (after v9.1.150) Solution: Check if win_split() failed, add winfixbuf.res to Makefile
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 7233893b17..4b575b4d8c 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -469,15 +469,14 @@ ex_listdo(exarg_T *eap)
}
if (win_valid(prevwin) && !prevwin->w_p_wfb)
- {
// 'winfixbuf' is set; attempt to change to a window without it.
win_goto(prevwin);
- }
if (curwin->w_p_wfb)
{
// Split the window, which will be 'nowinfixbuf', and set curwin to
// that
- win_split(0, 0);
+ if (win_split(0, 0) == FAIL)
+ return; // error message already given
if (curwin->w_p_wfb)
{