mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-03 18:00:24 +00:00
Fixed gcc warning
This commit is contained in:
parent
3445a933a5
commit
2355ddf75d
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ std::string make_temp_dir(std::string template_str)
|
||||||
log_assert(suffixlen == 0);
|
log_assert(suffixlen == 0);
|
||||||
|
|
||||||
char *p = strdup(template_str.c_str());
|
char *p = strdup(template_str.c_str());
|
||||||
mkdtemp(p);
|
p = mkdtemp(p);
|
||||||
|
log_assert(p != NULL);
|
||||||
template_str = p;
|
template_str = p;
|
||||||
free(p);
|
free(p);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue