diff options
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r-- | src/cli/compress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index 3104607fc..e62acd763 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -74,7 +74,7 @@ class Compress final : public Command const std::string out_file = output_filename(in_file, comp_type); std::ofstream out(out_file, std::ios::binary); - if(!in.good()) + if(!out.good()) { throw CLI_IO_Error("writing", out_file); } |