From c307344610c7484ccd5b42d90eedfc19d72bb74b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 02:45:07 +0000 Subject: Fix for compiler warning git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4263 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3