X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=main%2Fodcread.cc;h=5dc5b42702246b9fbdeabcd82ee62d3d30091bdf;hb=661d9227cb27e0bd2ae0c68ec5df6a08050e6cc3;hp=e6e174899125370fffc9d2bb0ea337e972f3dd56;hpb=65e6f1bfb5f2e513607f58e9b7653c3bd45b0dfc;p=odcread.git diff --git a/main/odcread.cc b/main/odcread.cc index e6e1748..5dc5b42 100644 --- a/main/odcread.cc +++ b/main/odcread.cc @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { try { if (argc < 2) { s = odc::importDocument(std::cin); - } else if (argc = 2) { + } else if (argc == 2) { std::ifstream in(argv[1], std::ios::in | std::ios::binary); s = odc::importDocument(in); } else { @@ -171,7 +171,7 @@ int main(int argc, char *argv[]) { // std::cout << s->toPlainText() << std::endl; // std::cout << std::endl << std::endl; - if (s == nullptr) { + if (s == NULL) { return 1; }