mirror of https://github.com/aria2/aria2
Call the member function of IOFile
parent
c2109a5aca
commit
1fd0e52c41
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue