aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-24 07:26:22 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-24 22:40:30 -0400
commitced2a38ad4dce6898c800dd68026c7b1823e484e (patch)
tree8082f1361a4447847f676e8a577d11b59fd302fd
parent8daefa348e24a2fb06a7d13cec0f827c7c3e60c5 (diff)
downloadrneovim-ced2a38ad4dce6898c800dd68026c7b1823e484e.tar.gz
rneovim-ced2a38ad4dce6898c800dd68026c7b1823e484e.tar.bz2
rneovim-ced2a38ad4dce6898c800dd68026c7b1823e484e.zip
tag: fix pvs/v547 error
-rw-r--r--src/nvim/tag.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 0d42deed2b..20fd7caa51 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -988,9 +988,7 @@ add_llist_tags(
cmd[len] = NUL;
}
- if ((dict = tv_dict_alloc()) == NULL) {
- continue;
- }
+ dict = tv_dict_alloc();
tv_list_append_dict(list, dict);
tv_dict_add_str(dict, S_LEN("text"), (const char *)tag_name);