summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 334315d72..a054e9b87 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -294,6 +294,7 @@ Module* Server::FindFeature(const std::string &FeatureName)
const std::string& Server::GetModuleName(Module* m)
{
+ static std::string nothing = ""; /* Prevent compiler warning */
for (int i = 0; i <= MODCOUNT; i++)
{
if (modules[i] == m)
@@ -301,7 +302,7 @@ const std::string& Server::GetModuleName(Module* m)
return Config->module_names[i];
}
}
- return "";
+ return nothing; /* As above */
}
void Server::RehashServer()