]> git.notmuchmail.org Git - notmuch/commit
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)
commit230c2ed35750d57203977a159cfb0da21118032d
tree5c66dbc680dd20b099f3b2338a2b85891c08e2f2
parentdd41a07bbdd8bb55873773918e06483caf664918
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