Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jun 2010 12:08:04 -0700
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Edwin Groothuis <edwin@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r208943 - head/usr.bin/calendar
Message-ID:  <AANLkTinLMLEnXI6Im-FFUmYCip7XBrdP_Z1qWNenzKNz@mail.gmail.com>
In-Reply-To: <201006091036.o59AaPMR096200@svn.freebsd.org>
References:  <201006091036.o59AaPMR096200@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 9, 2010 at 03:36, Edwin Groothuis <edwin@freebsd.org> wrote:
> Author: edwin
> Date: Wed Jun =A09 10:36:25 2010
> New Revision: 208943
> URL: http://svn.freebsd.org/changeset/base/208943
>
> Log:
> =A0fix memset() calls.

> - =A0 =A0 =A0 memset(&tm, sizeof(struct tm), 0);
> + =A0 =A0 =A0 memset(&tm, '\0', sizeof(struct tm));

Why use this novel spelling of 0 instead of simply reordering the
arguments (which already used the normal invocation)?



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