diff options
author | Erik Troan <ewt@redhat.com> | 2001-03-07 22:02:07 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-03-07 22:02:07 +0000 |
commit | ddb1b0f832a8462e72ddd3a2230048c7d86e9513 (patch) | |
tree | 1d51cbf6075b1b4565a50fbec743b3464e5b58bc /isys | |
parent | 9babb13390f32b84b875d180804b077752e86689 (diff) | |
download | anaconda-ddb1b0f832a8462e72ddd3a2230048c7d86e9513.tar.gz anaconda-ddb1b0f832a8462e72ddd3a2230048c7d86e9513.tar.xz anaconda-ddb1b0f832a8462e72ddd3a2230048c7d86e9513.zip |
handle empty module-info files
Diffstat (limited to 'isys')
-rw-r--r-- | isys/moduleinfo.c | 2 |
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; |