From 878c480b70993fc9ce9e4495040e7e4ad80e5c37 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 18 Mar 2008 10:44:32 +0000 Subject: added a clarification comment, which hopefully will be useful in the future --- modules.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules.c b/modules.c index cfbe20ac..4f4fed11 100644 --- a/modules.c +++ b/modules.c @@ -515,6 +515,10 @@ modUnloadAndDestructAll(eModLinkType_t modLinkTypesToUnload) if(modUnlinkAndDestroy(&pModCurr) == RS_RET_MODULE_STILL_REFERENCED) { pModCurr = GetNxt(pModCurr); } + /* Note: if the module was successfully unloaded, it has updated the + * pModCurr pointer to the next module. So we do NOT need to advance + * to the next module on successful unload. + */ } else { pModCurr = GetNxt(pModCurr); } -- cgit v1.2.3