summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp7
1 files changed, 7 insertions, 0 deletions
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