From owner-svn-src-all@FreeBSD.ORG Thu Dec 10 00:16:12 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54F3E106566B; Thu, 10 Dec 2009 00:16:12 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0F2678FC16; Thu, 10 Dec 2009 00:16:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBA0GBAJ045131; Thu, 10 Dec 2009 00:16:11 GMT (envelope-from jasone@svn.freebsd.org) Received: (from jasone@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBA0GB1q045129; Thu, 10 Dec 2009 00:16:11 GMT (envelope-from jasone@svn.freebsd.org) Message-Id: <200912100016.nBA0GB1q045129@svn.freebsd.org> From: Jason Evans Date: Thu, 10 Dec 2009 00:16:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200340 - head/lib/libc/stdlib X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Dec 2009 00:16:12 -0000 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; }