projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3445a93
)
Fixed gcc warning
author
Clifford Wolf
<clifford@clifford.at>
Wed, 15 Oct 2014 00:48:51 +0000
(
02:48
+0200)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 15 Oct 2014 00:48:51 +0000
(
02:48
+0200)
kernel/yosys.cc
patch
|
blob
|
history
diff --git
a/kernel/yosys.cc
b/kernel/yosys.cc
index ba3049c538d74014b6d807d4909d7793e08bbd89..1ce7b52075898c10d4943865f8eae88aeada6809 100644
(file)
--- a/
kernel/yosys.cc
+++ b/
kernel/yosys.cc
@@
-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);