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

David Bremner david at tethera.net
Thu Jan 5 19:22:34 PST 2012


On Thu,  5 Jan 2012 22:25:12 +0200, Jani Nikula <jani at 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



More information about the notmuch mailing list