mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Merge pull request #33 from dajohi/modules_load
Silence a compiler warning.
This commit is contained in:
commit
53f50d3dfa
@ -184,9 +184,6 @@ static int module_load_name(const char *path, const char *rootmodule,
|
||||
g_free(initfunc);
|
||||
g_free(deinitfunc);
|
||||
|
||||
module_init = value1;
|
||||
module_deinit = value2;
|
||||
|
||||
if (!found) {
|
||||
module_error(MODULE_ERROR_INVALID, NULL,
|
||||
rootmodule, submodule);
|
||||
@ -194,6 +191,9 @@ static int module_load_name(const char *path, const char *rootmodule,
|
||||
return 0;
|
||||
}
|
||||
|
||||
module_init = value1;
|
||||
module_deinit = value2;
|
||||
|
||||
/* Call the module's init() function - it should register itself
|
||||
with module_register() function, abort if it doesn't. */
|
||||
module_init();
|
||||
|
Loading…
Reference in New Issue
Block a user