From 2355ddf75d094e9272184ddd9ea916be49102b1b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 15 Oct 2014 02:48:51 +0200 Subject: [PATCH] Fixed gcc warning --- kernel/yosys.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/yosys.cc b/kernel/yosys.cc index ba3049c53..1ce7b5207 100644 --- 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); -- 2.30.2