From 69e257529be8941a9bb5b4a510dd89244d65dad0 Mon Sep 17 00:00:00 2001
From: philippegorley <philippegorley@gmail.com>
Date: Wed, 10 Mar 2021 11:47:24 -0500
Subject: [PATCH] uri: fix undefined behaviour

Change-Id: I679ab13c16316c405680ea288d5242b060c780c4
---
 src/uri.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uri.cpp b/src/uri.cpp
index 663bd0af..7517819f 100644
--- a/src/uri.cpp
+++ b/src/uri.cpp
@@ -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;
     });
-- 
GitLab