aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2015-05-01 19:38:55 +0200
committerEliseo Martínez <eliseomarmol@gmail.com>2015-05-01 19:38:55 +0200
commit88827f5834c94eeba2e27cd942c615309b7c1b1d (patch)
tree6e34a6f97f1f0a6378ed3ac3571ddd4db1d1f985
parent4fb79b1f76f0df3802973bb2ba084d4700c3b889 (diff)
parent1eaaff3fc5b96daa366c67a5ee066a5eb000bb56 (diff)
downloadrneovim-88827f5834c94eeba2e27cd942c615309b7c1b1d.tar.gz
rneovim-88827f5834c94eeba2e27cd942c615309b7c1b1d.tar.bz2
rneovim-88827f5834c94eeba2e27cd942c615309b7c1b1d.zip
Merge #2545: Fix clang analysis warnings. (12)
Reviewed-by: oni-link <knil.ino@gmail.com>
-rw-r--r--src/nvim/ex_cmds2.c2
-rw-r--r--src/nvim/ex_docmd.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index e453d68247..b79d09885c 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -1897,6 +1897,7 @@ void ex_listdo(exarg_T *eap)
/* go to window "wp" */
if (!win_valid(wp))
break;
+ assert(wp);
win_goto(wp);
if (curwin != wp)
break; /* something must be wrong */
@@ -1905,6 +1906,7 @@ void ex_listdo(exarg_T *eap)
/* go to window "tp" */
if (!valid_tabpage(tp))
break;
+ assert(tp);
goto_tabpage_tp(tp, TRUE, TRUE);
tp = tp->tp_next;
} else if (eap->cmdidx == CMD_bufdo) {
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 646d64f9f8..e81f99ccea 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -5813,6 +5813,7 @@ static void ex_tabonly(exarg_T *eap)
break;
}
}
+ assert(first_tabpage);
if (first_tabpage->tp_next == NULL) {
break;
}