mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-28 17:08:46 +00:00
Fixed a va_list corruption in logv_error()
This commit is contained in:
parent
88cf00ce78
commit
bc947d4c7b
1 changed files with 3 additions and 4 deletions
|
@ -113,12 +113,11 @@ void logv_header(const char *format, va_list ap)
|
||||||
|
|
||||||
void logv_error(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: ");
|
log("ERROR: ");
|
||||||
logv(format, ap);
|
logv(format, ap);
|
||||||
if (log_errfile != NULL) {
|
|
||||||
fprintf(log_errfile, "ERROR: ");
|
|
||||||
vfprintf(log_errfile, format, ap);
|
|
||||||
}
|
|
||||||
log_flush();
|
log_flush();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue