...
authorVolker Birk <vb@pep-project.org>
Thu, 16 Apr 2015 22:17:01 +0200
changeset 195d20403063ef3
parent 194 0ae880f9e55a
child 196 2d7c5fb43387
...
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Apr 15 13:11:56 2015 +0200
     1.2 +++ b/src/message_api.c	Thu Apr 16 22:17:01 2015 +0200
     1.3 @@ -810,33 +810,27 @@
     1.4              if (status != PEP_STATUS_OK)
     1.5                  return status;
     1.6  
     1.7 -            if (msg->to) {
     1.8 -                for (il = msg->to; il != NULL; il = il->next) {
     1.9 -                    if (il->ident) {
    1.10 -                        max_comm_type = _get_comm_type(session, max_comm_type,
    1.11 -                                il->ident);
    1.12 -                        comm_type_determined = true;
    1.13 -                    }
    1.14 +            for (il = msg->to; il != NULL; il = il->next) {
    1.15 +                if (il->ident) {
    1.16 +                    max_comm_type = _get_comm_type(session, max_comm_type,
    1.17 +                            il->ident);
    1.18 +                    comm_type_determined = true;
    1.19                  }
    1.20              }
    1.21  
    1.22 -            if (msg->cc) {
    1.23 -                for (il = msg->cc; il != NULL; il = il->next) {
    1.24 -                    if (il->ident) {
    1.25 -                        max_comm_type = _get_comm_type(session, max_comm_type,
    1.26 -                                il->ident);
    1.27 -                        comm_type_determined = true;
    1.28 -                    }
    1.29 +            for (il = msg->cc; il != NULL; il = il->next) {
    1.30 +                if (il->ident) {
    1.31 +                    max_comm_type = _get_comm_type(session, max_comm_type,
    1.32 +                            il->ident);
    1.33 +                    comm_type_determined = true;
    1.34                  }
    1.35              }
    1.36  
    1.37 -            if (msg->bcc) {
    1.38 -                for (il = msg->bcc; il != NULL; il = il->next) {
    1.39 -                    if (il->ident) {
    1.40 -                        max_comm_type = _get_comm_type(session, max_comm_type,
    1.41 -                                il->ident);
    1.42 -                        comm_type_determined = true;
    1.43 -                    }
    1.44 +            for (il = msg->bcc; il != NULL; il = il->next) {
    1.45 +                if (il->ident) {
    1.46 +                    max_comm_type = _get_comm_type(session, max_comm_type,
    1.47 +                            il->ident);
    1.48 +                    comm_type_determined = true;
    1.49                  }
    1.50              }
    1.51              break;