]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedcommand.cpp
version working on mac with .tellg changed to unget for windows
[mothur.git] / sharedcommand.cpp
index dd900643a741d576d1595c1a9c346d6b6c334361..42601f48ead5e872d000e35c9b64852ddccd5eb8 100644 (file)
@@ -81,6 +81,7 @@ int SharedCommand::execute(){
                        if (count != 1) { delete lastList; }
                        lastList = SharedList;                  
                        SharedList = input->getSharedListVector(); //get new list vector to process
+                       count++;
                        
                        //if (count != 1) { for (int i = 0; i < lastLookup.size(); i++) {  delete lastLookup[i];  } }
                        //lastLookup = lookup; 
@@ -106,7 +107,7 @@ int SharedCommand::execute(){
                        printSharedData(); //prints info to the .shared file
                }
                
-               delete lastList;
+               delete lastList; globaldata->gSharedList = NULL;
                delete shared;
                out.close();