]> git.notmuchmail.org Git - notmuch/commitdiff
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:44:47 +0000 (06:44 -0400)
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>

No differences found