Re: [PATCH 2/5] *.[ch] *_INIT macros: use { 0 } for a "zero out" idiom
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Sep 27, 2021, 06:35 UTC
- Message-ID
- <68c9c6da-d215-a39b-64f5-8b8930ce5a09@kdbg.org>
- In-Reply-To
- <patch-2.5-d612e7df7a5-20210927T003330Z-avarab@gmail.com>
Am 27.09.21 um 02:39 schrieb Ævar Arnfjörð Bjarmason:
Show 10 quoted lines
> diff --git a/entry.h b/entry.h
> index 7c889e58fd7..04bc8bb59f0 100644
> --- a/entry.h
> +++ b/entry.h
> @@ -16,7 +16,7 @@ struct checkout {
> clone:1,
> refresh_cache:1;
> };
> -#define CHECKOUT_INIT { NULL, "" }
> +#define CHECKOUT_INIT { 0 }This is not an equivalence transformation and does not belong in this patch.
-- Hannes