mirror of https://github.com/YosysHQ/yosys.git
Fixed a va_list corruption in logv_error()
This commit is contained in:
parent
88cf00ce78
commit
bc947d4c7b
|
@ -113,12 +113,11 @@ void logv_header(const char *format, va_list ap)
|
|||
|
||||
void logv_error(const char *format, va_list ap)
|
||||
{
|
||||
if (log_errfile != NULL)
|
||||
log_files.push_back(log_errfile);
|
||||
|
||||
log("ERROR: ");
|
||||
logv(format, ap);
|
||||
if (log_errfile != NULL) {
|
||||
fprintf(log_errfile, "ERROR: ");
|
||||
vfprintf(log_errfile, format, ap);
|
||||
}
|
||||
log_flush();
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue