Fix BR 1445441: uninitialized use of "error_file"

This commit is contained in:
H. Peter Anvin 2007-09-25 08:47:47 -07:00
parent e373efdab5
commit 97e15755f9

4
nasm.c
View File

@ -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();