mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
Fix BR 1445441: uninitialized use of "error_file"
This commit is contained in:
parent
e373efdab5
commit
97e15755f9
4
nasm.c
4
nasm.c
@ -158,6 +158,8 @@ int main(int argc, char **argv)
|
||||
want_usage = terminate_after_phase = FALSE;
|
||||
report_error = report_error_gnu;
|
||||
|
||||
error_file = stderr;
|
||||
|
||||
nasm_set_malloc_error(report_error);
|
||||
offsets = raa_init();
|
||||
forwrefs = saa_init((int32_t)sizeof(struct forwrefinfo));
|
||||
@ -165,8 +167,6 @@ int main(int argc, char **argv)
|
||||
preproc = &nasmpp;
|
||||
operating_mode = op_normal;
|
||||
|
||||
error_file = stderr;
|
||||
|
||||
seg_init();
|
||||
|
||||
register_output_formats();
|
||||
|
Loading…
x
Reference in New Issue
Block a user