diff options
Diffstat (limited to 'Src/module.c')
-rw-r--r-- | Src/module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/module.c b/Src/module.c index f5f500315..c82d77373 100644 --- a/Src/module.c +++ b/Src/module.c @@ -2623,9 +2623,7 @@ unload_module(Module m, LinkNode node) } if(!m->deps) { if (!node) { - for (node = firstnode(modules); node; incnode(node)) - if (m == (Module) getdata(node)) - break; + node = linknodebydatum(modules, m); if (!node) return 1; } |