Merge pull request #210 from cyrillemoureaux/fix-141

Fix crash when --library is provided but no actual library path is.
This commit is contained in:
Kelson 2018-06-29 15:12:17 +02:00 committed by GitHub
commit f99b6965e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -983,15 +983,15 @@ int main(int argc, char** argv)
break;
}
} else {
if (optind <= argc) {
if (optind < argc) {
if (libraryFlag) {
libraryPath = argv[optind++];
} else {
while (optind < argc)
zimPathes.push_back(std::string(argv[optind++]));
}
break;
}
break;
}
}