Skip to content

Commit

Permalink
Avoid closing stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
iskunk committed Aug 22, 2017
1 parent 074adb1 commit bd24261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MT_systems/squoia/esqu/outputSentences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ int main(int argc, char *argv[]) {
}
}
}
inputFile.close();
if (infile != "")
inputFile.close();
} else {
//model type not recognized: abort
std::cerr << "model type not recognized, check content of " << modelfile << "!" << std::endl;
Expand Down

0 comments on commit bd24261

Please sign in to comment.