Re: [PATCH 1/4] cli: fix use of uninitialized variable in "notmuch reply"

Subject: Re: [PATCH 1/4] cli: fix use of uninitialized variable in "notmuch reply"

Date: Thu, 05 Jan 2012 23:22:34 -0400

To: Jani Nikula, notmuch@notmuchmail.org

Cc:

From: David Bremner


On Thu,  5 Jan 2012 22:25:12 +0200, Jani Nikula <jani@nikula.org> wrote:
> -    notmuch_show_params_t params;
> +    notmuch_show_params_t params = { .part = -1 };
>  
>      reply_format_func = notmuch_reply_format_default;
> -    params.part = -1;

Do I understand correctly that this is just a style change, or do you
rely on some c99(?) behaviour of initializing the other elements to 0?

d


Thread: