From e02d868ada5f0bf72ce09680aa51a806d24f7591 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 30 Mar 2017 22:29:20 +0200 Subject: [PATCH] * env.c (initialize_env): Initialize stacksize to 0. From-SVN: r246598 --- libgomp/ChangeLog | 4 ++++ libgomp/env.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 74f50e0f32f..ece8ff0b364 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2017-03-30 Jakub Jelinek + + * env.c (initialize_env): Initialize stacksize to 0. + 2017-03-22 Cesar Philippidis PR c++/80029 diff --git a/libgomp/env.c b/libgomp/env.c index 74dc6f38530..7c6c02220b6 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -1187,7 +1187,7 @@ handle_omp_display_env (unsigned long stacksize, int wait_policy) static void __attribute__((constructor)) initialize_env (void) { - unsigned long thread_limit_var, stacksize; + unsigned long thread_limit_var, stacksize = 0; int wait_policy; /* Do a compile time check that mkomp_h.pl did good job. */ -- 2.30.2