DEADSOFTWARE

Solve oldType path lookup, found SEGFAULT
[odcread.git] / odcread.cc
index 32fcd6b25471d2b368f16e05c10cf00105f0a77c..a6765e913ab97614b3ceb0d877ca21e0b6a1d1fd 100644 (file)
@@ -25,6 +25,9 @@ namespace odc {
 }
 
 int main(int argc, char *argv[]) {
+       if (argc < 2) {
+               return 1;
+       }
        std::ifstream in(argv[1], std::ios::in | std::ios::binary);
        odc::Store* s = odc::importDocument(in);
        std::cout << s->toString() << std::endl;