Skip to content

Commit

Permalink
Merge change for reading from stdin from 'rel1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jan 18, 2017
2 parents 07e247f + 81213d0 commit d3245c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pat.cpp
Expand Up @@ -265,9 +265,11 @@ pair<bool, int> CFilePatternSource::nextBatch(
void CFilePatternSource::open() {
if(is_open_) {
is_open_ = false;
fclose(fp_);
fp_ = NULL;
if(qfp_ != NULL) {
if (fp_ != stdin) {
fclose(fp_);
fp_ = NULL;
}
if(qfp_ != NULL && qfp_ != stdin) {
fclose(qfp_);
qfp_ = NULL;
}
Expand Down

0 comments on commit d3245c5

Please sign in to comment.