[Midnightbsd-cvs] src [7473] trunk/lib/libthr/thread/thr_clean.c: fix sizeof operand mismatch.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Mar 18 20:06:05 EDT 2016
Revision: 7473
http://svnweb.midnightbsd.org/src/?rev=7473
Author: laffer1
Date: 2016-03-18 20:06:05 -0400 (Fri, 18 Mar 2016)
Log Message:
-----------
fix sizeof operand mismatch. obtained from Dragonfly
Modified Paths:
--------------
trunk/lib/libthr/thread/thr_clean.c
Modified: trunk/lib/libthr/thread/thr_clean.c
===================================================================
--- trunk/lib/libthr/thread/thr_clean.c 2016-03-19 00:04:17 UTC (rev 7472)
+++ trunk/lib/libthr/thread/thr_clean.c 2016-03-19 00:06:05 UTC (rev 7473)
@@ -84,7 +84,7 @@
curthread->unwind_disabled = 1;
#endif
if ((newbuf = (struct pthread_cleanup *)
- malloc(sizeof(struct _pthread_cleanup_info))) != NULL) {
+ malloc(sizeof(struct pthread_cleanup))) != NULL) {
newbuf->routine = routine;
newbuf->routine_arg = arg;
newbuf->onheap = 1;
More information about the Midnightbsd-cvs
mailing list