Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 437 invoked by uid 500); 17 May 2002 14:58:28 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 424 invoked from network); 17 May 2002 14:58:27 -0000 Date: 17 May 2002 14:58:27 -0000 Message-ID: <20020517145827.62414.qmail@icarus.apache.org> From: trawick@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/strings apr_cpystrn.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N trawick 02/05/17 07:58:27 Modified: strings apr_cpystrn.c Log: don't check for malloc() failure in our strdup() replacement Submitted by: Aaron Bannert Reviewed by: Jeff Trawick Revision Changes Path 1.13 +1 -3 apr/strings/apr_cpystrn.c Index: apr_cpystrn.c =================================================================== RCS file: /home/cvs/apr/strings/apr_cpystrn.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- apr_cpystrn.c 17 May 2002 11:18:58 -0000 1.12 +++ apr_cpystrn.c 17 May 2002 14:58:27 -0000 1.13 @@ -243,9 +243,7 @@ char *sdup; size_t len = strlen(str) + 1; - if (!(sdup = (char *) malloc(len))) { - return NULL; - } + sdup = (char *) malloc(len); memcpy(sdup, str, len); return sdup;