diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-17 22:02:46 +0200 |
commit | ce7cba6d7f36e79d52825215ba7b6848397b0440 (patch) | |
tree | cf249b863e9bfa1a6943b91dc293cc38bf71f6a7 /src/nvim/quickfix.c | |
parent | 7debba9d4295f09bc338a5f0718abdc54d565a56 (diff) | |
parent | 2eb9150a4fcb8f43599e5f470cbcb3a12195d910 (diff) | |
download | rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.gz rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.bz2 rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.zip |
Merge #6533 'Fix PVS-studio warnings'
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 4fa5c85abd..1241841885 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -856,7 +856,7 @@ restofline: if (fmt_ptr == NULL) { qi->qf_multiline = qi->qf_multiignore = false; } - } else if (fmt_ptr != NULL) { + } else { // honor %> item if (fmt_ptr->conthere) { fmt_start = fmt_ptr; @@ -984,7 +984,7 @@ qf_init_ext( } // Use the local value of 'errorformat' if it's set. - if (errorformat == p_efm && tv == NULL && *buf->b_p_efm != NUL) { + if (errorformat == p_efm && tv == NULL && buf && *buf->b_p_efm != NUL) { efm = buf->b_p_efm; } else { efm = errorformat; @@ -3284,7 +3284,6 @@ void ex_cc(exarg_T *eap) || eap->cmdidx == CMD_lrewind || eap->cmdidx == CMD_lfirst || eap->cmdidx == CMD_llast - || eap->cmdidx == CMD_llast || eap->cmdidx == CMD_ldo || eap->cmdidx == CMD_lfdo) { qi = GET_LOC_LIST(curwin); @@ -3341,7 +3340,6 @@ void ex_cnext(exarg_T *eap) || eap->cmdidx == CMD_lnfile || eap->cmdidx == CMD_lNfile || eap->cmdidx == CMD_lpfile - || eap->cmdidx == CMD_lpfile || eap->cmdidx == CMD_ldo || eap->cmdidx == CMD_lfdo) { qi = GET_LOC_LIST(curwin); |