Replace getenv("TEMP") by RDTempFile() in RDParsePost

This commit is contained in:
Alban Peignier 2014-09-05 10:02:59 +02:00
parent c3e5f54083
commit 9b9ddecf0a

View File

@ -783,13 +783,7 @@ bool RDParsePost(std::map<QString,QString> *vars)
// //
// Initialize Temp Directory Path // Initialize Temp Directory Path
// //
if(getenv("TMPDIR")!=NULL) { tempdir = RDTempDir() + "/rivendellXXXXXX";
tempdir=getenv("TMPDIR");
}
else {
tempdir="/tmp";
}
tempdir+="/rivendellXXXXXX";
// //
// Get message part separator // Get message part separator