cli: fix use of uninitialized variable in "notmuch reply"
authorJani Nikula <jani@nikula.org>
Thu, 5 Jan 2012 20:25:12 +0000 (22:25 +0200)
committerDavid Bremner <bremner@debian.org>
Mon, 9 Jan 2012 10:50:20 +0000 (06:50 -0400)
commit80ae1829c19f1fbe714232defcf12f18bc99ddb8
treec84cec8cc8e6e36dac28d16f12b078e61e070368
parente0991930c0ffe25db6fe3769b938df261dbc6531
cli: fix use of uninitialized variable in "notmuch reply"

notmuch_show_params_t params is only initialized partially in
notmuch_reply_command(). The only field that is used uninitialized is
params.decrypt. It is usually non-zero, making "notmuch reply" on encrypted
messages work by coincidence.

Initialize params properly, and set params.decrypt as needed.

Signed-off-by: Jani Nikula <jani@nikula.org>
notmuch-reply.c