Re: [PATCH 2/6] t: harmonize t-reftable-stack.c with coding guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 06, 2024 at 07:43:38PM +0530, Chandra Pratap wrote:
> @@ -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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux