mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-23 04:38:55 +00:00
Fixes for some of clang scan-build detected issues
This commit is contained in:
parent
956c4e485a
commit
6574553189
15 changed files with 39 additions and 23 deletions
|
@ -469,8 +469,8 @@ std::string make_temp_dir(std::string template_str)
|
|||
# endif
|
||||
|
||||
char *p = strdup(template_str.c_str());
|
||||
p = mkdtemp(p);
|
||||
log_assert(p != NULL);
|
||||
char *res = mkdtemp(p);
|
||||
log_assert(res != NULL);
|
||||
template_str = p;
|
||||
free(p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue