diff --git a/presence/implementation/advertisement_decoder.cc b/presence/implementation/advertisement_decoder.cc index 036d8a84..e45d07a2 100644 --- a/presence/implementation/advertisement_decoder.cc +++ b/presence/implementation/advertisement_decoder.cc @@ -427,7 +427,7 @@ std::vector AdvertisementDecoder::GetCredentialSelectors( IdentityType::IDENTITY_TYPE_PRIVATE, IdentityType::IDENTITY_TYPE_TRUSTED, IdentityType::IDENTITY_TYPE_PUBLIC, IdentityType::IDENTITY_TYPE_PROVISIONED}; - std::vector selectors(all_types.size()); + std::vector selectors; for (auto identity_type : (scan_request.identity_types.empty() ? all_types : scan_request.identity_types)) {