mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +02: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
|
@ -1,3 +1,8 @@
|
|||
2000-08-04 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 12525: Src/module.c: remove (wrong) test for linked-in modules
|
||||
in require_module()
|
||||
|
||||
2000-08-04 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 12516: Src/compat.c, Src/system.h, Src/Modules/files.c,
|
||||
|
|
|
@ -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…
Reference in a new issue