summaryrefslogtreecommitdiff
path: root/src/game-server/main-game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r--src/game-server/main-game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index c610b7a2..a654d3d2 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -140,7 +140,7 @@ static void initializeConfiguration(std::string configPath = std::string())
LOG_INFO("Using config file: " << configPath);
// Check inter-server password.
- if (Configuration::getValue("net_password", "") == "")
+ if (Configuration::getValue("net_password", std::string()).empty())
{
LOG_FATAL("SECURITY WARNING: 'net_password' not set!");
exit(EXIT_BAD_CONFIG_PARAMETER);