diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 02:45:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 02:45:07 +0000 |
commit | c307344610c7484ccd5b42d90eedfc19d72bb74b (patch) | |
tree | 0f37143b18f5d1a82cd61889c24425974f23898e /src/modules.cpp | |
parent | b285ef3229737b772853b7042b767896ce73fa1f (diff) |
Fix for compiler warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4263 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 3 |
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() |