Re: Proposal: Make use of C99 designated initialisers fornulls/values arrays - Mailing list pgsql-hackers

From Isaac Morland
Subject Re: Proposal: Make use of C99 designated initialisers fornulls/values arrays
Date
Msg-id CAMsGm5ffGmwZxv1_o-=XEgJojMuvNiewC0EmOvitvYmDATeb0w@mail.gmail.com
Whole thread Raw
In response to Proposal: Make use of C99 designated initialisers for nulls/valuesarrays  ("Smith, Peter" <peters@fast.au.fujitsu.com>)
Responses RE: Proposal: Make use of C99 designated initialisers fornulls/values arrays
Re: Proposal: Make use of C99 designated initialisers fornulls/values arrays
List pgsql-hackers
On Tue, 1 Oct 2019 at 03:55, Smith, Peter <peters@fast.au.fujitsu.com> wrote:
 
Typical Example:
Before:
        Datum           values[Natts_pg_attribute];
        bool            nulls[Natts_pg_attribute];
        ...
        memset(values, 0, sizeof(values));
        memset(nulls, false, sizeof(nulls));
After:
        Datum           values[Natts_pg_attribute] = {0};
        bool            nulls[Natts_pg_attribute] = {0};

I hope you'll forgive a noob question. Why does the "After" initialization for the boolean array have {0} rather than {false}? 

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Block level parallel vacuum
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] Block level parallel vacuum