src/etpan_mime.c
changeset 153 2402d3d340e2
parent 152 f97cd2862f49
child 154 3ba2cbfcef1d
     1.1 --- a/src/etpan_mime.c	Sat Mar 28 21:41:03 2015 +0100
     1.2 +++ b/src/etpan_mime.c	Sat Mar 28 22:11:57 2015 +0100
     1.3 @@ -657,7 +657,9 @@
     1.4  {
     1.5      assert(content);
     1.6  
     1.7 -    if (content->ct_type && content->ct_type->tp_data.tp_discrete_type &&
     1.8 +    if (content->ct_type && content->ct_type->tp_type ==
     1.9 +            MAILMIME_TYPE_DISCRETE_TYPE &&
    1.10 +            content->ct_type->tp_data.tp_discrete_type &&
    1.11              content->ct_type->tp_data.tp_discrete_type->dt_type ==
    1.12              MAILMIME_DISCRETE_TYPE_TEXT) {
    1.13          if (subtype)