summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2023-09-18 10:22:45 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2023-09-18 10:55:26 +0900
commit1fd0e52c41eed159d196c256770cac128ff976f2 (patch)
treebfff72ebbf7909498aca28ee97ef55df3328ba9c
parentc2109a5aca3a68916f6ba0969248e2bc73f49979 (diff)
Call the member function of IOFile
-rw-r--r--src/UriListParser.cc4
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.");
}
}