summaryrefslogtreecommitdiff
path: root/indra/llcommon/lluri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/lluri.cpp')
-rw-r--r--indra/llcommon/lluri.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llcommon/lluri.cpp b/indra/llcommon/lluri.cpp
index cf06fe3f40..1f64c3bde3 100644
--- a/indra/llcommon/lluri.cpp
+++ b/indra/llcommon/lluri.cpp
@@ -359,8 +359,7 @@ LLURI LLURI::buildHTTP(const std::string& host_port,
LLURI result;
// TODO: deal with '/' '?' '#' in host_port
- S32 index = host_port.find("://");
- if (index != host_port.npos)
+ if (host_port.find("://") != host_port.npos)
{
// The scheme is part of the host_port
result.mScheme = "";