]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
fixed memory leak of groupmap in reads
[mothur.git] / errorchecking.cpp
index 5f587a9b83a1a140409fc0cbdfa4bba0169ea518..9a0846214bb97a9f4cce7fa42540b0e4a642dda0 100644 (file)
@@ -171,8 +171,8 @@ bool ErrorCheck::checkInput(string input) {
                                errorFree = false;
                } 
                
-               if ((commandName == "libshuff") && (globaldata->gMatrix == NULL)) {
-                        cout << "You must read in a matrix before you use the libshuff command. " << endl; return false; 
+               if ((commandName == "libshuff") && ((globaldata->gMatrix == NULL) || (globaldata->gGroupmap == NULL))) {
+                        cout << "You must read in a matrix and groupfile before you use the libshuff command. " << endl; return false; 
                }
                
                if (commandName == "parsimony") {