]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: env.c (initialize_env): Initialize stacksize to 0.
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 08:21:17 +0000 (10:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 08:21:17 +0000 (10:21 +0200)
Backported from mainline
2017-03-30  Jakub Jelinek  <jakub@redhat.com>

* env.c (initialize_env): Initialize stacksize to 0.

From-SVN: r248666

libgomp/ChangeLog
libgomp/env.c

index eb135c9c3ab3efe2b070bb6b557761d0a9f488c2..bae1441dabf186d0013681c022dfd08d8c0f9c27 100644 (file)
@@ -1,6 +1,10 @@
 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
 
        Backported from mainline
+       2017-03-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * env.c (initialize_env): Initialize stacksize to 0.
+
        2016-11-01  Jakub Jelinek  <jakub@redhat.com>
 
        * hashtab.h: Use standard GPLv3 with runtime exception
index 6b5e963c4ea300fa12c7d0a73f6903746e6a0b83..11d63e8759daf95a77726e4f3fa29503c276b9c2 100644 (file)
@@ -1178,7 +1178,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.  */