Re: [PATCH] cli: use designated initializer to initialize add_files_state

2015-09-29 Thread David Bremner
Jani Nikula writes: > The side effect is that all of add_files_state will be initialized to > zero, removing any lingering doubt that some of it might not be > initialized. It's not a small struct, and the initialization is > scattered around a bit, so this makes the code more

Re: [PATCH] cli: use designated initializer to initialize add_files_state

2015-09-25 Thread Tomi Ollila
On Fri, Sep 25 2015, Jani Nikula wrote: > The side effect is that all of add_files_state will be initialized to > zero, removing any lingering doubt that some of it might not be > initialized. It's not a small struct, and the initialization is > scattered around a bit, so this

[PATCH] cli: use designated initializer to initialize add_files_state

2015-09-25 Thread Jani Nikula
The side effect is that all of add_files_state will be initialized to zero, removing any lingering doubt that some of it might not be initialized. It's not a small struct, and the initialization is scattered around a bit, so this makes the code more readable. --- notmuch-new.c | 13 +