mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Fixed gcc warning
This commit is contained in:
parent
3445a933a5
commit
2355ddf75d
|
@ -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…
Reference in a new issue