Loader: Use local instead of global variable
@@ -50,14 +50,14 @@ int elektraModulesInit (KeySet * modules, Key * error ELEKTRA_UNUSED)
return 0;
}
+elektraPluginFactory elektraModulesLoad (KeySet * modules, const char * name, Key * errorKey)
+{
#ifdef _WIN32
const char elektraPluginPostfix[] = ".dll";
#else
const char elektraPluginPostfix[] = ".so";
#endif
-elektraPluginFactory elektraModulesLoad (KeySet * modules, const char * name, Key * errorKey)
-{
Key * moduleKey = keyNew ("system/elektra/modules", KEY_END);
keyAddBaseName (moduleKey, name);
Key * lookup = ksLookup (modules, moduleKey, 0);
