svn commit: r200340 - head/lib/libc/stdlib
Jason Evans
jasone at FreeBSD.org
Wed Dec 9 16:16:12 PST 2009
Author: jasone
Date: Thu Dec 10 00:16:11 2009
New Revision: 200340
URL: http://svn.freebsd.org/changeset/base/200340
Log:
Fix the posix_memalign() changes in r196861 to actually return a NULL pointer
as intended.
PR: standards/138307
Modified:
head/lib/libc/stdlib/malloc.c
Modified: head/lib/libc/stdlib/malloc.c
==============================================================================
--- head/lib/libc/stdlib/malloc.c Wed Dec 9 23:14:53 2009 (r200339)
+++ head/lib/libc/stdlib/malloc.c Thu Dec 10 00:16:11 2009 (r200340)
@@ -5340,6 +5340,7 @@ posix_memalign(void **memptr, size_t ali
size = 1;
else {
result = NULL;
+ *memptr = NULL;
ret = 0;
goto RETURN;
}
More information about the svn-src-head
mailing list