diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2023-09-18 10:22:45 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2023-09-18 10:55:26 +0900 |
| commit | 1fd0e52c41eed159d196c256770cac128ff976f2 (patch) | |
| tree | bfff72ebbf7909498aca28ee97ef55df3328ba9c | |
| parent | c2109a5aca3a68916f6ba0969248e2bc73f49979 (diff) | |
Call the member function of IOFile
| -rw-r--r-- | src/UriListParser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UriListParser.cc b/src/UriListParser.cc index ca021cb3..7fd2b217 100644 --- a/src/UriListParser.cc +++ b/src/UriListParser.cc @@ -77,7 +77,7 @@ void UriListParser::parseNext(std::vector<std::string>& uris, Option& op) if (fp_->eof()) { break; } - else if (!fp_) { + else if (!*fp_) { throw DL_ABORT_EX("UriListParser:I/O error."); } else { @@ -102,7 +102,7 @@ void UriListParser::parseNext(std::vector<std::string>& uris, Option& op) if (fp_->eof()) { return; } - else if (!fp_) { + else if (!*fp_) { throw DL_ABORT_EX("UriListParser:I/O error."); } } |
