Re: [PATCH 2/6] t: harmonize t-reftable-stack.c with coding guidelines
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Aug 7, 2024, 05:23 UTC
- Message-ID
- <ZrME4jcdSmK3rUTh@tanuki>
- In-Reply-To
- <20240806142020.4615-3-chandrapratap3519@gmail.com>
On Tue, Aug 06, 2024 at 07:43:38PM +0530, Chandra Pratap wrote:
Show 8 quoted lines
> @@ -433,18 +431,18 @@ static void t_reftable_stack_add(void)
> };
> struct reftable_stack *st = NULL;
> char *dir = get_tmp_dir(__LINE__);
> - struct reftable_ref_record refs[2] = { { NULL } };
> - struct reftable_log_record logs[2] = { { NULL } };
> + struct reftable_ref_record refs[2] = { { 0 } };
> + struct reftable_log_record logs[2] = { { 0 } };These should simply be `{ 0 }`, here and in a few other places further down.
Patrick