Minor performance tuning
This commit is contained in:
@@ -157,10 +157,10 @@ static bool collect_tags(private_swid_inventory_t *this, char *pathname,
|
|||||||
target_enumerator = targets->create_enumerator(targets);
|
target_enumerator = targets->create_enumerator(targets);
|
||||||
while (target_enumerator->enumerate(target_enumerator, &tag_id))
|
while (target_enumerator->enumerate(target_enumerator, &tag_id))
|
||||||
{
|
{
|
||||||
if (chunk_equals(tag_id->get_tag_creator(tag_id),
|
if (chunk_equals(tag_id->get_unique_sw_id(tag_id, NULL),
|
||||||
tag_creator) &&
|
unique_sw_id) &&
|
||||||
chunk_equals(tag_id->get_unique_sw_id(tag_id, NULL),
|
chunk_equals(tag_id->get_tag_creator(tag_id),
|
||||||
unique_sw_id))
|
tag_creator))
|
||||||
{
|
{
|
||||||
match = TRUE;
|
match = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user