Commit 43fa5db5 by Jakub Jelinek Committed by Jakub Jelinek

re PR libgomp/52993 (gomp_init_nest_lock_25: possible bad call to memset)

	PR libgomp/52993
	* config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
	argument to memset call.

From-SVN: r188276
parent 3c6a5c3f
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.
......
/* 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment