In src/tagmanager/tm_query.c:

> +
> +	foreach_ptr_array(s, i, q->names)
> +	{
> +		TMTag **tags;
> +		if (q->data_sources & TM_QUERY_SOURCE_GLOBAL_TAGS)
> +		{
> +			tags = tm_tags_find(q->workspace->global_tags, s->str, s->len, &ntags);
> +			if (ntags)
> +			{
> +				g_ptr_array_set_size(ret, ret->len + ntags);
> +				memcpy(&ret->pdata[ret->len], *tags, ntags * sizeof(gpointer));
> +			}
> +		}
> +		if (q->data_sources & TM_QUERY_SOURCE_SESSION_TAGS)
> +		{
> +			tags = tm_tags_find(q->workspace->global_tags, s->str, s->len, &ntags);

Is q->workspace->global_tags correct here? You do the same as in the TM_QUERY_SOURCE_GLOBAL_TAGS case above.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.