From owner-svn-src-head@FreeBSD.ORG Mon May 5 17:42:27 2014 Return-Path: Delivered-To: svn-src-head@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 047B5482 for ; Mon, 5 May 2014 17:42:27 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) (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 7F804A22 for ; Mon, 5 May 2014 17:42:26 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id e16so2160817lan.20 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=e1O1R3GUAiCV/p4V0UlamAFvY86Glfvh/zH/zYKuMmT3rTy0eaXoEYtgvKRP1vrhJB 68bZR8agAaASR7QBd9IFL6ZVF1S3PpLFsnSk38LLGLvFYhpjaVgetcv+O8ttz/PugC13 oEcQ8ZjZ8/Kuh8mEDOI4n8gmu4Ck9IPKpEKGreSDIS5GB/+ifJHZuQUAQ4Su2dwjobEI BhcD+fhyb2x560Q4EUBhdwrlaAYgSKc7W++QMadYUcjVSzsAGBrZcsBvk0Hw71vwzIen Jz1UGVOV/n+eWK8vWV/TG2HwDXn6A1fHrwAITn6hld+Wd7HERx4jDbZuUSJzHsI9uLZe 9eBg== X-Gm-Message-State: ALoCoQmD7QdE1sgUOgB34Vk8mHrNiNpZPsVeg8PdAdQMd7WJu99cASl+m4G1EqGAzL6T51Cv2S9c 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-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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/