]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Validate module reload callback before use in PURE_STATIC builds
authorAttila Molnar <attilamolnar@hush.com>
Sun, 30 Nov 2014 17:20:42 +0000 (18:20 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 30 Nov 2014 17:20:42 +0000 (18:20 +0100)
src/modmanager_static.cpp

index c5b1e10629746d5d6245658ddba0d22af6f86850..cea40c7a32364e75a807866f7979e6730c88a40c 100644 (file)
@@ -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);
                }
        };