Re: [PATCH 3/4] ll-merge: initialize default_opts const
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 15, 2011, 23:17 UTC
- Message-ID
- <7vty65t1qp.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1321376379-31750-4-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 15 quoted lines
> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
> ---
> ll-merge.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ll-merge.c b/ll-merge.c
> index da59738..205aed3 100644
> --- a/ll-merge.c
> +++ b/ll-merge.c
> @@ -351,7 +351,7 @@ int ll_merge(mmbuffer_t *result_buf,
> const struct ll_merge_options *opts)
> {
> static struct git_attr_check check[2];
> - static const struct ll_merge_options default_opts;
> + static const struct ll_merge_options default_opts = {0, 0, 0, 0};Doesn't "static" tell us that it will be in BSS, initialized to all zero by definition?