Commit 43c32372 authored by Max Kellermann's avatar Max Kellermann

util/UriUtil: make `schemes` array static

parent 5716cde1
...@@ -167,7 +167,11 @@ gcc_pure ...@@ -167,7 +167,11 @@ gcc_pure
static const char * static const char *
SkipUriScheme(const char *uri) noexcept SkipUriScheme(const char *uri) noexcept
{ {
const char *const schemes[] = { "http://", "https://", "ftp://" }; static const char *const schemes[] = {
"http://", "https://",
"ftp://",
};
for (auto scheme : schemes) { for (auto scheme : schemes) {
auto result = StringAfterPrefixCaseASCII(uri, scheme); auto result = StringAfterPrefixCaseASCII(uri, scheme);
if (result != nullptr) if (result != nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment