From owner-svn-src-all@FreeBSD.ORG Mon May 5 17:42:27 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24CEC485 for ; Mon, 5 May 2014 17:42:27 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0659A24 for ; Mon, 5 May 2014 17:42:26 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id c11so3517408lbj.38 for ; Mon, 05 May 2014 10:42:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=1RBLc5HSWF+5UBNxL34xJiRII3ovnV0IVLUKki3pM98=; b=XeD8Rs7ALM0lxBh6CKAmnGuiBGtku6CQg/L59reGd1XaJmiJjuQ9NDoe3LsZF3N2xY Rq8AQLRYf7x/oJzKN9vfRWimKhHlIpMOGiG2BsyXrAhDLYz5h69EaVDXck0LJ2Qjkhd+ EMEJvA1oys/1qJGWUTezKcd9/iO6iOwwNCW4zTgyCa2RZqCPGhJAvznCoAAAk+rzow7j xRjGudgeZWs35qhy4DU8bUM896O/LUojEP0bxkw0xSkyTiH5bvgtPLIDc+4mcMHPTqze zzDdmBNoVO9MIe0oXyhZUPgThut/jfYEJQl0YK+ZDYZqNVpSyS6pr0ocgU7bOi2RAv/h G53w== X-Gm-Message-State: ALoCoQkL3S6cSL3+viihWeH3xUeoq8V3TDeTMxRytPrTBLrfJ5aqNJehSuptJyJcYTzy4F70pbyA X-Received: by 10.112.137.39 with SMTP id qf7mr26110246lbb.18.1399311737778; Mon, 05 May 2014 10:42:17 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id zx3sm10293024lbc.2.2014.05.05.10.42.16 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 10:42:16 -0700 (PDT) Message-ID: <5367CD77.40909@freebsd.org> Date: Mon, 05 May 2014 21:42:15 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "Pedro F. Giffuni" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r265367 - head/lib/libc/regex References: <201405051641.s45GfFje086423@svn.freebsd.org> In-Reply-To: <201405051641.s45GfFje086423@svn.freebsd.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 05 May 2014 17:42:27 -0000 On 05.05.2014 20:41, Pedro F. Giffuni wrote: > Log: > regex: Use calloc instead of malloc. > > Mostly to reduce differences with OpenBSD. Please don't commit OpenBSD errors. Now you mix calloc() with the realloc() for the same variable later which makes calloc() zeroing pointless and waste of CPU. -- http://ache.vniz.net/