From db821a964c9a7f96222b00e6b41f91ba3384e29a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Oct 2014 21:00:06 +0300 Subject: Fix dir for updates if server not give any update servers. --- src/dirs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dirs.cpp b/src/dirs.cpp index eb636c86c..4e8ba1efc 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -338,7 +338,14 @@ void Dirs::initUpdatesDir() // Don't go out of range int he next check if (settings.updateHost.length() < 2) + { + if (settings.updatesDir.empty()) + { + settings.updatesDir = std::string("updates/").append( + settings.serverName); + } return; + } const size_t sz = settings.updateHost.size(); // Remove any trailing slash at the end of the update host -- cgit v1.2.3-70-g09d2