Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Mar 2001 08:48:18 -0800
From:      Jordan Hubbard <jkh@osd.bsdi.com>
To:        sobomax@FreeBSD.org
Cc:        rooneg@electricjellyfish.net, ports@FreeBSD.org, jhk@FreeBSD.org, gad@FreeBSD.org, reg@FreeBSD.org
Subject:   Re: [patch] which package functionality for pkg_info
Message-ID:  <20010301084818F.jkh@osd.bsdi.com>
In-Reply-To: <3A9E500C.4709EB8@FreeBSD.org>
References:  <20010227220553.A75036@electricjellyfish.net> <20010228192345.A11065@electricjellyfish.net> <3A9E500C.4709EB8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Maxim Sobolev <sobomax@FreeBSD.org>
Subject: Re: [patch] which package functionality for pkg_info
Date: Thu, 01 Mar 2001 15:35:08 +0200

> 2. Use ordinary malloc(...) instead of calloc(1, ...);

malloc() doesn't zero memory the way calloc() does, and I suspect
that was his intention for a number of the allocations.  No reason
to do a malloc/bzero when you can do it in one operation.

- Jordan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010301084818F.jkh>