tagtree remove unneeded strlen

unfortunately most of the overhead in searching for <Untagged> occurs in
reading of entries so changing searching the resulting string faster doesn't
do much good but any we don't need this strlen call since its already been
computed

Change-Id: Ia2815a6e7d75237366977632f9b0bc7999254096
This commit is contained in:
William Wilgus 2022-11-23 10:56:50 -05:00 committed by William Wilgus
parent ec1611dfa6
commit 8379c6eb07

View file

@ -1589,7 +1589,7 @@ static int retrieve_entries(struct tree_context *c, int offset, bool init)
if (tagcache_retrieve(&tcs, tcs.idx_id, tag_filename, dptr->name,
c->cache.name_buffer_size - namebufused))
{
namebufused += strlen(dptr->name)+1;
namebufused += tcs.result_len;
goto entry_skip_formatter;
}
dptr->name = lastname; /* restore last entry if filename failed */