aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-11-22 01:07:45 +0100
committerGitHub <noreply@github.com>2022-11-22 08:07:45 +0800
commit0cbc23d3cc327109176c0a9c0f8a48fc5196a6cd (patch)
treef5655de92dbced3a0ebfbec2a014dde193f9b614 /src/nvim/quickfix.c
parentedd0de9821ba916e52fed37967d557c82c9fc0e6 (diff)
downloadrneovim-0cbc23d3cc327109176c0a9c0f8a48fc5196a6cd.tar.gz
rneovim-0cbc23d3cc327109176c0a9c0f8a48fc5196a6cd.tar.bz2
rneovim-0cbc23d3cc327109176c0a9c0f8a48fc5196a6cd.zip
fix: pvs warnings (#21145)
* fix(PVS/V009): start file with special comment * fix(PVS/V501): identical sub-expressions for comparison * fix(PVS/V560): part of conditional expression is always true/false * fix(PVS/V593): review expression of type A = B < C * fix(PVS/V614): potentially uninitialized variable used
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index cadbab91f4..a1c89be68a 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -6711,7 +6711,7 @@ static bool mark_quickfix_ctx(qf_info_T *qi, int copyID)
typval_T *ctx = qi->qf_lists[i].qf_ctx;
if (ctx != NULL && ctx->v_type != VAR_NUMBER
&& ctx->v_type != VAR_STRING && ctx->v_type != VAR_FLOAT) {
- abort = abort || set_ref_in_item(ctx, copyID, NULL, NULL);
+ abort = set_ref_in_item(ctx, copyID, NULL, NULL);
}
Callback *cb = &qi->qf_lists[i].qf_qftf_cb;