Re: [PATCH 2/4] reachable.c: mark reachable objects in index from all worktrees
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 2, 2016, 09:37 UTC
- Message-ID
- <CACsJy8CsmeRgk49quPZe5vx5W_3X1T=ConhsfPBEcEwvJ1-b4Q@mail.gmail.com>
- In-Reply-To
- <1464807435.3988.9.camel@twopensource.com>
On Thu, Jun 2, 2016 at 1:57 AM, David Turner <dturner@twopensource.com> wrote:
Show 7 quoted lines
>> + struct index_state istate;
>> +
>> + memset(&istate, 0, sizeof(istate));
>
>
> Why not just struct index_state istate = {0}; ?
>My first thought was.. "hmm.. C99?" but then there are 24 of them in the code base already. Will change.
-- Duy