Skip to content
Snippets Groups Projects
Commit 69e25752 authored by Philippe Gorley's avatar Philippe Gorley
Browse files

uri: fix undefined behaviour

Change-Id: I679ab13c16316c405680ea288d5242b060c780c4
parent bae0c7e7
Branches
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ URIPimpl::strip(const QString& uri, URI::SchemeType& schemeType, QString& scheme
schemeType = URI::SchemeType::UNRECOGNIZED;
auto it = std::find_if(schemeNames.begin(), schemeNames.end(), [&scheme](auto& it) {
if (it.second == "ring:" && scheme == "jami:")
if (std::string(it.second) == "ring:" && scheme == "jami:")
return true;
return it.second == scheme;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment