diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-11-30 18:20:42 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-11-30 18:20:42 +0100 |
commit | a2f23523cff4dcc7dfac60781027fc90074c1ebd (patch) | |
tree | 22e81cb887371cb51cb83b0937a18d186ce4789e /src/modmanager_static.cpp | |
parent | fc7bd73cf5e7f609d497e2166657f77a0bac7d41 (diff) |
Validate module reload callback before use in PURE_STATIC builds
Diffstat (limited to 'src/modmanager_static.cpp')
-rw-r--r-- | src/modmanager_static.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp index c5b1e1062..cea40c7a3 100644 --- a/src/modmanager_static.cpp +++ b/src/modmanager_static.cpp @@ -158,7 +158,8 @@ namespace { ServerInstance->Modules->DoSafeUnload(mod); ServerInstance->GlobalCulls.Apply(); bool rv = ServerInstance->Modules->Load(name.c_str()); - callback->Call(rv); + if (callback) + callback->Call(rv); ServerInstance->GlobalCulls.AddItem(this); } }; |