aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-05-20 17:07:35 +0200
committerGitHub <noreply@github.com>2017-05-20 17:07:35 +0200
commitbde46fdeceec8f9dd675f0e31080d732308573d9 (patch)
tree0044b6fd7f2f1682941e053ea686ec98a1d4f898 /src/nvim/tag.c
parent3280765f2dde4ba6d120387908d735ed763db01c (diff)
parent7dc7d2f83f30eb2df1c5408ffceda244ced2f468 (diff)
downloadrneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.tar.gz
rneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.tar.bz2
rneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.zip
Merge #6772 from ZyX-I/fix-pvs-errors
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index b8b86bf979..88b45add54 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -208,10 +208,9 @@ do_tag (
clearpos(&saved_fmark.mark); /* shutup gcc 4.0 */
saved_fmark.fnum = 0;
- /*
- * Don't add a tag to the tagstack if 'tagstack' has been reset.
- */
- if (!p_tgst && *tag != NUL) {
+ // Don't add a tag to the tagstack if 'tagstack' has been reset.
+ assert(tag != NULL);
+ if (!p_tgst && *tag != NUL) { // -V522
use_tagstack = false;
new_tag = true;
if (g_do_tagpreview != 0) {