Fixed gcc warning
authorClifford Wolf <clifford@clifford.at>
Wed, 15 Oct 2014 00:48:51 +0000 (02:48 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 15 Oct 2014 00:48:51 +0000 (02:48 +0200)
kernel/yosys.cc

index ba3049c538d74014b6d807d4909d7793e08bbd89..1ce7b52075898c10d4943865f8eae88aeada6809 100644 (file)
@@ -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);