src/message_api.c
branchENGINE-559
changeset 3943 47d45beb5cd1
parent 3915 c3fa76972af5
parent 3927 fd89f666f4e4
child 3948 371c29c97a53
     1.1 --- a/src/message_api.c	Mon Jul 15 15:29:06 2019 +0200
     1.2 +++ b/src/message_api.c	Wed Jul 17 09:47:56 2019 +0200
     1.3 @@ -2594,8 +2594,8 @@
     1.4      
     1.5      if ((!slong || slong[0] == '\0')
     1.6           && (!sform || sform[0] == '\0')) {
     1.7 -        if (satt) {
     1.8 -            const char* inner_mime_type = satt->mime_type;
     1.9 +        const char* inner_mime_type = (satt ? satt->mime_type : NULL);     
    1.10 +        if (inner_mime_type) {
    1.11              if (strcasecmp(inner_mime_type, "text/plain") == 0) {
    1.12                  free(slong); /* in case of "" */
    1.13                  src->longmsg = strndup(satt->value, satt->size);