Fix crash when looking at msgs without content type
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 4 May 2018 07:23:38 +0000 (09:23 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 4 May 2018 07:23:38 +0000 (09:23 +0200)
commitaed389f9ce639db48dcfc84cb495a2b180496207
tree76f86848881e5bf6784f77b2e63442870b86d918
parent07811afb552bfc1e51aea25a39cb52327831198b
Fix crash when looking at msgs without content type

* src/mapihelp.cpp (change_message_class_ipm_note): Check
for ct before using it in string comparison.

--
The codepath is reached for temporary, discarded mails, e.g.
when a Reply All in the Inline editor is canceled through
Escape.

This fixes: dc48589b3d429d7d156c75b4e7bc784b140f40ce
GnuPG-Bug-Id: T3960
src/mapihelp.cpp