diff options
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 40611bd237..c9a065391b 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -784,8 +784,7 @@ do_tag ( cmd[len] = NUL; } - if ((dict = dict_alloc()) == NULL) - continue; + dict = dict_alloc(); list_append_dict(list, dict); dict_add_nr_str(dict, "text", 0L, tag_name); @@ -2822,8 +2821,7 @@ int get_tags(list_T *list, char_u *pat) if (STRNCMP(tp.tagname, "!_TAG_", 6) == 0) continue; - if ((dict = dict_alloc()) == NULL) - ret = FAIL; + dict = dict_alloc(); list_append_dict(list, dict); full_fname = tag_full_fname(&tp); |