Skip to content

Commit

Permalink
Fix - as input filename
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Aug 23, 2018
1 parent 1b941ad commit b13820a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ int main_codec(int argc, char *argv[], CodecMode mode) {
istream* input_stream = &cin;
cin.tie(nullptr);
unique_ptr<ifstream> input_box;
if (!input_filename.empty()) {
if (!input_filename.empty() && input_filename != "-") {
input_box = make_unique<ifstream>(input_filename);
if (!input_box->good()) {
throw runtime_error("Failed to open input file");
Expand Down

0 comments on commit b13820a

Please # to comment.