static void add_mailing_lists(struct AddressList *out, const struct AddressList *t,
const struct AddressList *c)
{
- const struct AddressList *const als[] = { t, c, NULL };
+ const struct AddressList *const als[] = { t, c };
- for (const struct AddressList *al = *als; al; ++al)
+ for (size_t i = 0; i < mutt_array_size(als); ++i)
{
+ const struct AddressList *al = als[i];
struct Address *a = NULL;
TAILQ_FOREACH(a, al, entries)
{
else if (mutt_fetch_recips(env, curenv, flags) == -1)
return -1;
- if ((flags & SEND_LIST_REPLY) && !TAILQ_EMPTY(&env->to))
+ if ((flags & SEND_LIST_REPLY) && TAILQ_EMPTY(&env->to))
{
mutt_error(_("No mailing lists found"));
return -1;