mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 22:00:38 -04:00
+ small fix for windows
This commit is contained in:
parent
b58fccc15e
commit
ed8b56ff98
@ -477,6 +477,7 @@ int main(int argc, char **argv) {
|
||||
vector<string> libraryPaths = kiwix::split(libraryPath, ";");
|
||||
vector<string>::iterator itr;
|
||||
for ( itr = libraryPaths.begin(); itr != libraryPaths.end(); ++itr ) {
|
||||
if (!(*itr).empty()) {
|
||||
bool retVal = false;
|
||||
try {
|
||||
retVal = libraryManager.readFile(*itr, true);
|
||||
@ -489,6 +490,7 @@ int main(int argc, char **argv) {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if the library is not empty (or only remote books)*/
|
||||
if (libraryManager.getBookCount(true, false)==0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user