Date: Sun, 17 Dec 2000 15:15:09 -0600 From: "Jacques A. Vidrine" <n@nectar.com> To: hackers@freebsd.org Subject: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen getgrent.c) Message-ID: <20001217151509.A63051@hamlet.nectar.com> In-Reply-To: <200012172110.eBHLAfU46563@freefall.freebsd.org>; from nectar@FreeBSD.org on Sun, Dec 17, 2000 at 01:10:41PM -0800 References: <200012172110.eBHLAfU46563@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[This typo came from NetBSD, so in this particular source I have no
intention of changing the style.]
What do folks think about
1) if (data)
free(data);
versus
2) free(data);
versus
3) #define xfree(x) if ((x) != NULL) free(x);
xfree(data);
--
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org
On Sun, Dec 17, 2000 at 01:10:41PM -0800, Jacques Vidrine wrote:
> nectar 2000/12/17 13:10:41 PST
>
> Modified files:
> lib/libc/gen getgrent.c
> Log:
> Fix mostly harmless typo:
>
> if (data);
> free(data);
>
> Discovered by: emacs cc-mode
>
> Revision Changes Path
> 1.19 +2 -2 src/lib/libc/gen/getgrent.c
>
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001217151509.A63051>
