tag: fix pvs/v547 error

This commit is contained in:
Jan Edmund Lazo 2019-10-24 07:26:22 -04:00
parent 8daefa348e
commit ced2a38ad4
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -988,9 +988,7 @@ add_llist_tags(
cmd[len] = NUL; cmd[len] = NUL;
} }
if ((dict = tv_dict_alloc()) == NULL) { dict = tv_dict_alloc();
continue;
}
tv_list_append_dict(list, dict); tv_list_append_dict(list, dict);
tv_dict_add_str(dict, S_LEN("text"), (const char *)tag_name); tv_dict_add_str(dict, S_LEN("text"), (const char *)tag_name);