Subject: CVS commit: src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 06/01/2005 05:30:54
Module Name:	src
Committed By:	lukem
Date:		Wed Jun  1 05:30:54 UTC 2005

Modified Files:
	src/lib/libc/gen: pthread_atfork.c

Log Message:
Ensure that we don't try to free random memory when another malloc fails,
by initializing newprepare, newparent, and newchild to NULL.
Detected by gcc -Wuninitialized.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/lib/libc/gen/pthread_atfork.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.