summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
Diffstat (limited to 'isys')
-rw-r--r--isys/moduleinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/moduleinfo.c b/isys/moduleinfo.c
index c3e0b95a7..c22fa28b1 100644
--- a/isys/moduleinfo.c
+++ b/isys/moduleinfo.c
@@ -200,7 +200,7 @@ int isysReadModuleInfo(const char * filename, moduleInfoSet mis, void * ident) {
}
/* do we need to add in this last module? */
- if ((nextModule - mis->moduleList) == mis->numModules)
+ if (nextModule && ((nextModule - mis->moduleList) == mis->numModules))
mis->numModules++;
return 0;