From: Clifford Wolf Date: Wed, 15 Oct 2014 00:48:51 +0000 (+0200) Subject: Fixed gcc warning X-Git-Tag: yosys-0.4~50 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2355ddf75d094e9272184ddd9ea916be49102b1b;p=yosys.git Fixed gcc warning --- 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);