Skip to content

Commit

Permalink
lib-mail: mail_html2text_deinit(NULL) should be a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef 'Jeff' Sipek authored and sirainen committed Mar 12, 2018
1 parent f5ab340 commit 9c22e26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib-mail/mail-html2text.c
Expand Up @@ -334,6 +334,9 @@ void mail_html2text_deinit(struct mail_html2text **_ht)
{
struct mail_html2text *ht = *_ht;

if (ht == NULL)
return;

*_ht = NULL;
buffer_free(&ht->input);
i_free(ht);
Expand Down

0 comments on commit 9c22e26

Please sign in to comment.