]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
added name option to read.tree for use in unifrac and parimony commands
[mothur.git] / mothur.h
index 74d71caed4df23c2472b7b9b8c229e315721a424..a63d7ae055f8281bbfd0fda4ef03c3647419beea 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -503,7 +503,7 @@ inline string getFullPathName(string fileName){
                        if (path.rfind("./") == -1) { return fileName; } //already complete name
                        else { newFileName = fileName.substr(fileName.rfind("./")+2); } //save the complete part of the name
                        
-                       char* cwdpath;
+                       char* cwdpath = new char[1024];
                        size_t size;
                        cwdpath=getcwd(cwdpath,size);
                        cwd = cwdpath;