Makes m_id a shared pointer

This commit is contained in:
Felipe Zimmerle
2019-01-23 10:29:36 -03:00
parent 343b86c2a7
commit a609249d64
6 changed files with 49 additions and 54 deletions

View File

@@ -469,7 +469,7 @@ int Multipart::tmp_file_name(std::string *filename) const {
memset(tstr, '\0', 300);
strftime(tstr, 299, "/%Y%m%d-%H%M%S", &timeinfo);
path = path + tstr + "-" + m_transaction->m_id;
path = path + tstr + "-" + *m_transaction->m_id.get();
path = path + "-file-XXXXXX";
tmp = strdup(path.c_str());