Date: Thu, 10 Dec 2009 00:16:11 +0000 (UTC) From: Jason Evans <jasone@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r200340 - head/lib/libc/stdlib Message-ID: <200912100016.nBA0GB1q045129@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912100016.nBA0GB1q045129>