Fixed gcc warning

This commit is contained in:
Clifford Wolf 2014-10-15 02:48:51 +02:00
parent 3445a933a5
commit 2355ddf75d
1 changed files with 2 additions and 1 deletions

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);