src/etpan_mime.c
changeset 156 0d9aec90828f
parent 155 a131cef4a937
child 157 63eb5372f2ef
     1.1 --- a/src/etpan_mime.c	Sun Mar 29 11:48:58 2015 +0200
     1.2 +++ b/src/etpan_mime.c	Sun Mar 29 12:03:09 2015 +0200
     1.3 @@ -618,9 +618,10 @@
     1.4                  clistiter *cur2;
     1.5                  for (cur2 = clist_begin(_parmlist); cur2; cur2 =
     1.6                          clist_next(cur2)) {
     1.7 -                    struct mailmime_parameter * param = clist_content(cur2);
     1.8 -                    if (param && param->pa_name == NULL)
     1.9 -                        return param->pa_value;
    1.10 +                    struct mailmime_disposition_parm * param =
    1.11 +                            clist_content(cur2);
    1.12 +                    if (param->pa_type == MAILMIME_DISPOSITION_PARM_FILENAME)
    1.13 +                        return param->pa_data.pa_filename;
    1.14                  }
    1.15              }
    1.16          }