]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libgomp/52993 (gomp_init_nest_lock_25: possible bad call to memset)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Jun 2012 18:31:06 +0000 (20:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Jun 2012 18:31:06 +0000 (20:31 +0200)
PR libgomp/52993
* config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
argument to memset call.

From-SVN: r188276

libgomp/ChangeLog
libgomp/config/linux/lock.c

index f8d57398bc66023547acaec3b2ef81fac8f8ba0a..f22c41a728f7ab038bff817088b0f4a88a0bae64 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-06  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/52993
+       * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
+       argument to memset call.
+
 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * configure: Regenerated.
index 60693439422fb53268bf8f12d6adb35f478721e9..047d8cdf782cbeb116bb911a2deddaf46799dd8a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2008, 2009, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth@redhat.com>.
 
    This file is part of the GNU OpenMP Library (libgomp).
@@ -175,7 +175,7 @@ static inline int gomp_tid (void)
 void
 gomp_init_nest_lock_25 (omp_nest_lock_25_t *lock)
 {
-  memset (lock, 0, sizeof (lock));
+  memset (lock, 0, sizeof (*lock));
 }
 
 void