|
@@ -77,7 +77,7 @@ void UriListParser::parseNext(std::vector<std::string>& uris, Option& op)
|
|
if (fp_->eof()) {
|
|
if (fp_->eof()) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- else if (!fp_) {
|
|
|
|
|
|
+ else if (!*fp_) {
|
|
throw DL_ABORT_EX("UriListParser:I/O error.");
|
|
throw DL_ABORT_EX("UriListParser:I/O error.");
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
@@ -102,7 +102,7 @@ void UriListParser::parseNext(std::vector<std::string>& uris, Option& op)
|
|
if (fp_->eof()) {
|
|
if (fp_->eof()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- else if (!fp_) {
|
|
|
|
|
|
+ else if (!*fp_) {
|
|
throw DL_ABORT_EX("UriListParser:I/O error.");
|
|
throw DL_ABORT_EX("UriListParser:I/O error.");
|
|
}
|
|
}
|
|
}
|
|
}
|