summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tagcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 195de2f467..aac4841d93 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -636,7 +636,7 @@ static bool add_uniqbuf(struct tagcache_search *tcs, long id)
int i;
/* If uniq buffer is not defined we must return true for search to work. */
- if (tcs->unique_list == NULL)
+ if (tcs->unique_list == NULL || !tagcache_is_unique_tag(tcs->type))
return true;
for (i = 0; i < tcs->unique_list_count; i++)