]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
added [ERROR] flag if command aborts
[mothur.git] / mothurout.cpp
index eb452b19a681e5ebe83d71ca7975a4140f703a55..27b36ce5ff83dceadeb77e84045caef94d5168c9 100644 (file)
@@ -489,6 +489,7 @@ bool MothurOut::isBlank(string fileName){
                        //check for blank file
                        gobble(fileHandle);
                        if (fileHandle.eof()) { fileHandle.close(); return true;  }
+                       fileHandle.close();
                }
                return false;
        }
@@ -926,7 +927,7 @@ vector<unsigned long int> MothurOut::setFilePosFasta(string filename, int& num)
                        
                        in.seekg(size);
                
-                       while(char c = in.get()){
+                       while(in.get()){
                                if(in.eof())            {       break;  }
                                else                            {       size++; }
                        }