mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-12 10:00:56 +01:00
remove (wrong) test for linked-in modules in require_module() (12525)
This commit is contained in:
parent
22cbf1b271
commit
8e740b7044
2 changed files with 5 additions and 5 deletions
|
|
@ -778,11 +778,6 @@ require_module(char *nam, char *module, int res, int test)
|
|||
Module m = NULL;
|
||||
LinkNode node;
|
||||
|
||||
/* First see if the module is linked in. */
|
||||
for (node = firstnode(linkedmodules); node; incnode(node)) {
|
||||
if (!strcmp((char *) getdata(node), nam))
|
||||
return 1;
|
||||
}
|
||||
node = find_module(module);
|
||||
if (node && (m = ((Module) getdata(node)))->u.handle &&
|
||||
!(m->flags & MOD_UNLOAD)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue