1
0
mirror of synced 2026-05-03 06:40:15 +00:00

Fixed gcc warning

This commit is contained in:
Clifford Wolf
2014-10-15 02:48:51 +02:00
parent 3445a933a5
commit 2355ddf75d

View File

@@ -252,7 +252,8 @@ std::string make_temp_dir(std::string template_str)
log_assert(suffixlen == 0);
char *p = strdup(template_str.c_str());
mkdtemp(p);
p = mkdtemp(p);
log_assert(p != NULL);
template_str = p;
free(p);