- if (value) {
- if (encoded)
- mutt_convert_string (&value, charset, mod_cset.charset, M_ICONV_HOOK_FROM);
- *head = parameter_new();
- (*head)->attribute = m_strdup(attribute);
- (*head)->value = value;
- head = &(*head)->next;
- }
+ if (!value)
+ continue;
+ if (encoded)
+ mutt_convert_string (&value, charset, mod_cset.charset, M_ICONV_HOOK_FROM);
+ parameter_setval(head, attribute, value);