summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-25 08:47:47 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-25 08:48:37 -0700
commit97e15755f94264002ba80097c59f543148983183 (patch)
treea887a5978a489da2401456512e4878c2cb87555b
parente373efdab58f3461e70f8dd4395e8559f5387ace (diff)
downloadnasm-97e15755f94264002ba80097c59f543148983183.tar.gz
Fix BR 1445441: uninitialized use of "error_file"
-rw-r--r--nasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nasm.c b/nasm.c
index 5fa3ebbb..6b7ca4c3 100644
--- a/nasm.c
+++ b/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();