diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-04 21:00:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-04 21:00:06 +0300 |
commit | db821a964c9a7f96222b00e6b41f91ba3384e29a (patch) | |
tree | 7094c6e0b4d07e24abcb3713e748f0dc0c851fe2 /src/dirs.cpp | |
parent | 95bc78e4bfa8f084266da85dbafab4ec56507bb9 (diff) | |
download | mv-db821a964c9a7f96222b00e6b41f91ba3384e29a.tar.gz mv-db821a964c9a7f96222b00e6b41f91ba3384e29a.tar.bz2 mv-db821a964c9a7f96222b00e6b41f91ba3384e29a.tar.xz mv-db821a964c9a7f96222b00e6b41f91ba3384e29a.zip |
Fix dir for updates if server not give any update servers.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 7 |
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 |