3
0
Fork 0

Merge pull request #210 from cyrillemoureaux/fix-141

Fix crash when --library is provided but no actual library path is.
fix-bug-pid
Kelson 7 years ago committed by GitHub
commit f99b6965e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save