commit d4863f6: [Minor] Fix for old compilers

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Nov 18 12:35:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-11-18 12:32:05 +0000
URL: https://github.com/rspamd/rspamd/commit/d4863f6e33c900b45c6aea08cebdd97969368a45 (HEAD -> master)

[Minor] Fix for old compilers

---
 src/libserver/html/html_url.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx
index 8f721b3e8..ff0834040 100644
--- a/src/libserver/html/html_url.cxx
+++ b/src/libserver/html/html_url.cxx
@@ -392,7 +392,8 @@ html_process_url(rspamd_mempool_t *pool, std::string_view &input)
 		}
 		else if (G_UNLIKELY (s[i] == '%')) {
 			if (i + 2 < sz) {
-				auto [c1, c2] = std::tuple(s[i + 1], s[i + 2]);
+				auto c1 = s[i + 1];
+				auto c2 = s[i + 2];
 
 				if (g_ascii_isxdigit(c1) && g_ascii_isxdigit(c2)) {
 					auto codepoint = 0;


More information about the Commits mailing list