diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2023-01-23 16:24:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 16:24:22 +0100 |
commit | 245884a1011fe45b00bbb9cacd0111eb014adadf (patch) | |
tree | d1bcd1f90dc656bef8409bd5f7a677c8d4e4aa35 /kernel/yosys.cc | |
parent | 9bc9121b9efeeb490ca593f75354457a4e420653 (diff) | |
parent | 6574553189fb6ccb5d00a0c043671a625672b3d3 (diff) | |
download | yosys-245884a1011fe45b00bbb9cacd0111eb014adadf.tar.gz yosys-245884a1011fe45b00bbb9cacd0111eb014adadf.tar.bz2 yosys-245884a1011fe45b00bbb9cacd0111eb014adadf.zip |
Merge pull request #3629 from YosysHQ/micko/clang_fixes
Fixes for some of clang scan-build detected issues
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r-- | kernel/yosys.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 333faae6a..bd8dded4b 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -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); |