Move the zero'ing to the thread module array InitGlobal in an effort
to fix capture modules.
At some point device validation moved to a point in startup before
plugins are loaded meaning that capture plugins could not be
used. Moving plugin registration early enough caused some of their
registration to be wiped out as clearing the array was done after.
Bug: #6811
void RegisterAllModules(void)
{
- // zero all module storage
- memset(tmm_modules, 0, TMM_SIZE * sizeof(TmModule));
-
/* commanders */
TmModuleUnixManagerRegister();
/* managers */
ConfInit();
VarNameStoreInit();
+
+ // zero all module storage
+ memset(tmm_modules, 0, TMM_SIZE * sizeof(TmModule));
+
return 0;
}