3
0
Fork 0

+ small reorg. of the code

small_fixes
kelson42 13 years ago
parent d27d1c1716
commit 2e71d6ab9c

@ -51,7 +51,6 @@ int main(int argc, char **argv) {
int option_index = 0;
int c = 0;
supportedBackend backend = XAPIAN;
kiwix::Reader *reader;
/* Argument parsing */
while (42) {
@ -119,7 +118,8 @@ int main(int argc, char **argv) {
/* Check if this is a ZIM file */
try {
reader = new kiwix::Reader(contentPath);
kiwix::Reader *reader = new kiwix::Reader(contentPath);
delete reader;
} catch (exception &e) {
cerr << "The content available at '" << contentPath << "' is not a ZIM file." << endl;
exit(1);

Loading…
Cancel
Save