]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: mail_html2text_deinit(NULL) should be a no-op
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Mon, 29 Jan 2018 13:38:16 +0000 (08:38 -0500)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Mar 2018 09:58:54 +0000 (11:58 +0200)
src/lib-mail/mail-html2text.c

index 80f25393a134b292ee7ba2319aba1ae58140a199..fe05ea729d24bd6e4c9b3adf8a01f1621ad3baef 100644 (file)
@@ -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);