summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 5ef48b5d4..c5369127b 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1859,8 +1859,7 @@ void Client::initUpdatesDir()
mUpdateHost.resize(mUpdateHost.size() - 1);
// Parse out any "http://" or "ftp://", and set the updates directory
- size_t pos;
- pos = mUpdateHost.find("://");
+ const size_t pos = mUpdateHost.find("://");
if (pos != mUpdateHost.npos)
{
if (pos + 3 < mUpdateHost.length() && !mUpdateHost.empty())