Browse Source

Call the member function of IOFile

Tatsuhiro Tsujikawa 2 years ago
parent
commit
1fd0e52c41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/UriListParser.cc

+ 2 - 2
src/UriListParser.cc

@@ -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.");
       }
       }
     }
     }