diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-24 00:15:15 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-24 00:15:15 +0000 |
commit | fa67c7e80b15060773295e4719545a802d8717d5 (patch) | |
tree | d8ec5cbd28cde39b2dac6f11355fa710c9c81df8 /src | |
parent | 235864add961270140c956647d783fa79b5f7120 (diff) |
Don't query module version prior to init; fixes valgrind segfault
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12317 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modmanager_dynamic.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index 1fcf3aa56..0c63eefcd 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -88,11 +88,10 @@ bool ModuleManager::Load(const char* filename) { newmod->ModuleSourceFile = filename_str; newmod->ModuleDLLManager = newhandle; - Version v = newmod->GetVersion(); Modules[filename_str] = newmod; - newmod->init(); + Version v = newmod->GetVersion(); ServerInstance->Logs->Log("MODULE", DEFAULT,"New module introduced: %s (Module version %s)%s", filename, newhandle->GetVersion().c_str(), (!(v.Flags & VF_VENDOR) ? " [3rd Party]" : " [Vendor]")); } |