diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 08:47:47 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 08:48:37 -0700 |
commit | 97e15755f94264002ba80097c59f543148983183 (patch) | |
tree | a887a5978a489da2401456512e4878c2cb87555b /nasm.c | |
parent | e373efdab58f3461e70f8dd4395e8559f5387ace (diff) | |
download | nasm-97e15755f94264002ba80097c59f543148983183.tar.gz nasm-97e15755f94264002ba80097c59f543148983183.tar.bz2 nasm-97e15755f94264002ba80097c59f543148983183.zip |
Fix BR 1445441: uninitialized use of "error_file"
Diffstat (limited to 'nasm.c')
-rw-r--r-- | nasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |