mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();
if(nextCommand != NULL) { add_history(nextCommand); }
else{ //^D causes null string and we want it to quit mothur
- strcpy(nextCommand, "quit");
+ nextCommand = strdup("quit");
mout->mothurOut(nextCommand);
}
mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
+
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();
mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
+
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();