From b0eb3deb59fe23194be9d5fffa91b3d1a19d124e Mon Sep 17 00:00:00 2001 From: jakub Date: Wed, 6 Jun 2012 18:31:06 +0000 Subject: PR libgomp/52993 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last argument to memset call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188276 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog | 6 ++++++ libgomp/config/linux/lock.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'libgomp') diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index f8d57398bc6..f22c41a728f 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2012-06-06 Jakub Jelinek + + 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 * configure: Regenerated. diff --git a/libgomp/config/linux/lock.c b/libgomp/config/linux/lock.c index 60693439422..047d8cdf782 100644 --- a/libgomp/config/linux/lock.c +++ b/libgomp/config/linux/lock.c @@ -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 . 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 -- cgit v1.2.3