From 800977c96cd64b3beeccaa7d373daed3987b1c2a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 2 Feb 2024 14:26:01 +0100 Subject: Kernel: Improvements and fixes regarding the VMMers and assembly code. Signed-off-by: Amlal El Mahrouss --- Private/Source/URL.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Private/Source/URL.cxx') diff --git a/Private/Source/URL.cxx b/Private/Source/URL.cxx index f1df4ee1..ab289a66 100644 --- a/Private/Source/URL.cxx +++ b/Private/Source/URL.cxx @@ -18,7 +18,7 @@ Url::Url(StringView &strUrl) : m_urlView(strUrl, false) {} Url::~Url() = default; -constexpr const char *kProtos[] = { +constexpr const char *kURLProtocols[] = { "https", // http with the secure. "http", // http without the secure "file", // filesystem protocol @@ -43,8 +43,8 @@ static ErrorOr url_extract_location(const char *url) { for (; i < string_length(url); ++i) { if (!scheme_found) { for (int y = 0; kProtosCount; ++y) { - if (rt_string_in_string(view.CData(), kProtos[y])) { - i += string_length(kProtos[y]) + kUrlOutSz; + if (rt_string_in_string(view.CData(), kURLProtocols[y])) { + i += string_length(kURLProtocols[y]) + kUrlOutSz; scheme_found = true; break; -- cgit v1.2.3