if (head)
last->next = w;
else
- head = last = w;
+ {
+ head = w;
+ last = w;
+ }
while (last && last->next)
last = last->next;
}
last = last->next;
}
else
- head = last = a;
+ {
+ head = a;
+ last = a;
+ }
a = a->next;
last->next = NULL;
}
{
struct ColorLine *p = mutt_mem_calloc(1, sizeof(struct ColorLine));
- p->fg = p->bg = -1;
-
+ p->fg = -1;
+ p->bg = -1;
return p;
}
*/
int mutt_combine_color(int fg_attr, int bg_attr)
{
- short fg, bg;
+ short fg = COLOR_DEFAULT;
+ short bg = COLOR_DEFAULT;
- fg = bg = COLOR_DEFAULT;
mutt_lookup_color(fg_attr, &fg, NULL);
mutt_lookup_color(bg_attr, NULL, &bg);
+
if ((fg == COLOR_DEFAULT) && (bg == COLOR_DEFAULT))
return A_NORMAL;
return mutt_alloc_color(fg, bg);
* and remove from the msg->content list */
if (!alts)
{
- group->parts = alts = bptr;
+ group->parts = bptr;
+ alts = bptr;
bptr = bptr->next;
alts->next = NULL;
}
* and remove from the msg->content list */
if (!alts)
{
- group->parts = alts = bptr;
+ group->parts = bptr;
+ alts = bptr;
bptr = bptr->next;
alts->next = NULL;
}
/* This could be more space efficient. However, being used on tiny
* strings (Tochars and StatusChars), the overhead is not great. */
t->chars = mutt_mem_calloc(slen, sizeof(char *));
- d = t->segmented_str = mutt_mem_calloc(slen * 2, sizeof(char));
+ t->segmented_str = mutt_mem_calloc(slen * 2, sizeof(char));
+ d = t->segmented_str;
memset(&mbstate, 0, sizeof(mbstate));
while (slen && (k = mbrtowc(NULL, s, slen, &mbstate)))
{
if ((flags & CH_FROM) == 0)
continue;
- this_is_from = from = true;
+ this_is_from = true;
+ from = true;
}
else if (buf[0] == '\n' || (buf[0] == '\r' && buf[1] == '\n'))
break; /* end of header */
{
struct Address *tmp = a->next;
a->next = NULL;
- *buf = *cbuf = *c2buf = '\0';
+ *buf = '\0';
+ *cbuf = '\0';
+ *c2buf = '\0';
const size_t l = mutt_addr_write(buf, sizeof(buf), a, false);
a->next = tmp;
char *expr = NULL;
regex_t reyes;
regex_t reno;
- int reyes_ok;
- int reno_ok;
char answer[2];
answer[1] = '\0';
- reyes_ok = (expr = nl_langinfo(YESEXPR)) && (expr[0] == '^') &&
- (REGCOMP(&reyes, expr, REG_NOSUB) == 0);
- reno_ok = (expr = nl_langinfo(NOEXPR)) && (expr[0] == '^') &&
- (REGCOMP(&reno, expr, REG_NOSUB) == 0);
+ bool reyes_ok = (expr = nl_langinfo(YESEXPR)) && (expr[0] == '^') &&
+ (REGCOMP(&reyes, expr, REG_NOSUB) == 0);
+ bool reno_ok = (expr = nl_langinfo(NOEXPR)) && (expr[0] == '^') &&
+ (REGCOMP(&reno, expr, REG_NOSUB) == 0);
/* In order to prevent the default answer to the question to wrapped
* around the screen in the even the question is wider than the screen,
char *tag = NULL, *err = NULL;
be_free_memory(buf, buflen);
buf = NULL;
- bufmax = buflen = 0;
+ bufmax = 0;
+ buflen = 0;
if (EditHeaders)
{
o_read = cur->read;
o_old = cur->old;
- cur->read = cur->old = false;
+ cur->read = false;
+ cur->old = false;
msg = mx_msg_open_new(&tmpctx, cur, of);
cur->read = o_read;
cur->old = o_old;
last = last->next;
}
else
- top = last = mutt_addr_copy(addr);
+ {
+ last = mutt_addr_copy(addr);
+ top = last;
+ }
}
return top;
}
if (tmp)
tmp->next = mutt_addr_copy_list(b, prune);
else
- tmp = *a = mutt_addr_copy_list(b, prune);
+ {
+ *a = mutt_addr_copy_list(b, prune);
+ tmp = *a;
+ }
while (tmp && tmp->next)
tmp = tmp->next;
return tmp;
if (*p == '<')
{
s = p;
- o = onull = NULL;
+ o = NULL;
+ onull = NULL;
continue;
}
else if (o)
{
/* more than two lines, give up */
- s = o = onull = NULL;
+ s = NULL;
+ o = NULL;
+ onull = NULL;
}
else
{
last = new;
}
else
- last = head = new;
+ {
+ last = new;
+ head = new;
+ }
}
}
}
ulen = mutt_str_strlen(u);
/* Find earliest and latest things we must encode. */
- s0 = s1 = t0 = t1 = 0;
+ s0 = 0;
+ s1 = 0;
+ t0 = 0;
+ t1 = 0;
for (t = u; t < (u + ulen); t++)
{
if ((*t & 0x80) || ((*t == '=') && (t[1] == '?') && ((t == u) || HSPACE(*(t - 1)))))
FREE(&np);
}
- h->env->refs_changed = h->changed = true;
+ h->env->refs_changed = true;
+ h->changed = true;
}
}
}
break;
case OP_EDITOR_KILL_LINE:
- state->curpos = state->lastchar = 0;
+ state->curpos = 0;
+ state->lastchar = 0;
break;
case OP_EDITOR_KILL_EOL:
{
first = 0;
if (IsWPrint(wc)) /* why? */
- state->curpos = state->lastchar = 0;
+ {
+ state->curpos = 0;
+ state->lastchar = 0;
+ }
}
if (wc == '\r' || wc == '\n')
static void dbt_init(DBT *dbt, void *data, size_t len)
{
dbt->data = data;
- dbt->size = dbt->ulen = len;
- dbt->dlen = dbt->doff = 0;
+ dbt->size = len;
+ dbt->ulen = len;
+ dbt->dlen = 0;
+ dbt->doff = 0;
dbt->flags = DB_DBT_USERMEM;
}
static void dbt_empty_init(DBT *dbt)
{
dbt->data = NULL;
- dbt->size = dbt->ulen = dbt->dlen = dbt->doff = 0;
+ dbt->size = 0;
+ dbt->ulen = 0;
+ dbt->dlen = 0;
+ dbt->doff = 0;
dbt->flags = 0;
}
mutt_socket_close(idata->conn);
idata->state = IMAP_DISCONNECTED;
}
- idata->seqno = idata->nextcmd = idata->lastcmd = idata->status = false;
+ idata->seqno = false;
+ idata->nextcmd = false;
+ idata->lastcmd = false;
+ idata->status = false;
memset(idata->cmds, 0, sizeof(struct ImapCommand) * idata->cmdslots);
}
FREE(&hd->flags_system);
FREE(&hd->flags_remote);
- hd->deleted = hd->flagged = hd->replied = hd->read = hd->old = false;
+ hd->deleted = false;
+ hd->flagged = false;
+ hd->replied = false;
+ hd->read = false;
+ hd->old = false;
/* start parsing */
while (*s && *s != ')')
imap_munge_mbox_name(idata, mbox, sizeof(mbox), mailbox);
mutt_date_make_imap(internaldate, sizeof(internaldate), msg->received);
- imap_flags[0] = imap_flags[1] = 0;
+ imap_flags[0] = 0;
+ imap_flags[1] = 0;
+
if (msg->flags.read)
mutt_str_strcat(imap_flags, sizeof(imap_flags), " \\Seen");
if (msg->flags.replied)
snprintf(buffer, sizeof(buffer), "Reply-To: %s", p);
mutt_buffer_init(&buf);
- buf.data = buf.dptr = buffer;
+ buf.data = buffer;
+ buf.dptr = buffer;
buf.dsize = mutt_str_strlen(buffer);
mutt_buffer_init(&token);
return 0;
mutt_buffer_init(&expn);
- expn.data = expn.dptr = line;
+ expn.data = line;
+ expn.dptr = line;
expn.dsize = mutt_str_strlen(line);
*err->data = 0;
a = a->next;
}
else
- msg->content = a = mutt_make_file_attach(np->data);
+ {
+ a = mutt_make_file_attach(np->data);
+ msg->content = a;
+ }
if (!a)
{
mutt_error(_("%s: unable to attach file"), np->data);
if (ctx->msgcount == ctx->hdrmax)
mx_alloc_memory(ctx);
- ctx->hdrs[ctx->msgcount] = hdr = mutt_header_new();
+ hdr = mutt_header_new();
+ ctx->hdrs[ctx->msgcount] = hdr;
hdr->offset = loc;
hdr->index = ctx->msgcount;
if (ctx->msgcount == ctx->hdrmax)
mx_alloc_memory(ctx);
- curhdr = ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ curhdr = ctx->hdrs[ctx->msgcount];
curhdr->received = t - mutt_date_local_tz(t);
curhdr->offset = loc;
curhdr->index = ctx->msgcount;
ib = s;
ibl = len + 1;
obl = MB_LEN_MAX * ibl;
- ob = buf = mutt_mem_malloc(obl + 1);
+ buf = mutt_mem_malloc(obl + 1);
+ ob = buf;
mutt_ch_iconv(cd, &ib, &ibl, &ob, &obl, inrepls, outrepl, &rc);
iconv_close(cd);
static const char *repls[] = { "\357\277\275", "?", 0 };
fc = mutt_mem_malloc(sizeof(struct FgetConv));
- fc->p = fc->ob = fc->bufo;
+ fc->p = fc->bufo;
+ fc->ob = fc->bufo;
fc->ib = fc->bufi;
fc->ibl = 0;
fc->inrepls = mutt_ch_is_utf8(to) ? repls : repls + 1;
return (unsigned char) *(fc->p)++;
/* Try to convert some more */
- fc->p = fc->ob = fc->bufo;
+ fc->p = fc->bufo;
+ fc->ob = fc->bufo;
if (fc->ibl)
{
size_t obl = sizeof(fc->bufo);
return; /* disabled */
/* Remove dups from 0..last-1 compacting up. */
- source = dest = 0;
+ source = 0;
+ dest = 0;
while (source < h->last)
{
if (mutt_str_strcmp(h->hist[source], str) == 0)
h->hist[source--] = NULL;
/* Remove dups from last+1 .. History compacting down. */
- source = dest = History;
+ source = History;
+ dest = History;
while (source > old_last)
{
if (mutt_str_strcmp(h->hist[source], str) == 0)
ctx->C = 0x98badcfe;
ctx->D = 0x10325476;
- ctx->total[0] = ctx->total[1] = 0;
+ ctx->total[0] = 0;
+ ctx->total[1] = 0;
ctx->buflen = 0;
}
state[3] += d;
state[4] += e;
/* Wipe variables */
- a = b = c = d = e = 0;
+ a = 0;
+ b = 0;
+ c = 0;
+ d = 0;
+ e = 0;
memset(block, '\0', sizeof(block));
}
context->state[2] = 0x98BADCFE;
context->state[3] = 0x10325476;
context->state[4] = 0xC3D2E1F0;
- context->count[0] = context->count[1] = 0;
+ context->count[0] = 0;
+ context->count[1] = 0;
}
/**
mutt_str_strncat(buffer, sizeof(buffer), " ", 1);
}
- expn.data = expn.dptr = buffer;
+ expn.data = buffer;
+ expn.dptr = buffer;
expn.dsize = mutt_str_strlen(buffer);
if (command->func(&token, &expn, command->data, &err))
top = thread;
- array = mutt_mem_calloc((array_size = 256), sizeof(struct MuttThread *));
+ array_size = 256;
+ array = mutt_mem_calloc(array_size, sizeof(struct MuttThread *));
while (true)
{
if (init || !thread->sort_key)
/* we want a quick way to see if things are actually attached to the top of the
* thread tree or if they're just dangling, so we attach everything to a top
* node temporarily */
- top.parent = top.next = top.prev = NULL;
+ top.parent = NULL;
+ top.next = NULL;
+ top.prev = NULL;
+
top.child = ctx->tree;
for (thread = ctx->tree; thread; thread = thread->next)
thread->parent = ⊤
mutt_list_insert_head(&child->env->in_reply_to, mutt_str_strdup(parent->env->message_id));
mutt_set_flag(ctx, child, MUTT_TAG, 0);
- child->env->irt_changed = child->changed = true;
+ child->env->irt_changed = true;
+ child->changed = true;
return true;
}
{
struct Header *h = mutt_header_new();
h->env = mutt_env_new();
- h->env->from = h->env->to = alias;
+ h->env->from = alias;
+ h->env->to = alias;
mutt_default_save(p, sizeof(p), h);
- h->env->from = h->env->to = NULL;
+ h->env->from = NULL;
+ h->env->to = NULL;
mutt_header_free(&h);
/* Avoid infinite recursion if the resulting folder starts with '@' */
if (*p != '@')
int pl, pw;
pl = mutt_mb_charlen(src, &pw);
if (pl <= 0)
- pl = pw = 1;
+ {
+ pl = 1;
+ pw = 1;
+ }
/* see if there's room to add content, else ignore */
if ((col < cols && wlen < buflen) || soft)
int pl, pw;
pl = mutt_mb_charlen(src, &pw);
if (pl <= 0)
- pl = pw = 1;
+ {
+ pl = 1;
+ pw = 1;
+ }
/* see if there's room to add content, else ignore */
if (col < cols && wlen < buflen)
tmp_pbody = crypt_smime_sign_message(msg->content);
if (!tmp_pbody)
return -1;
- pbody = tmp_smime_pbody = tmp_pbody;
+ pbody = tmp_pbody;
+ tmp_smime_pbody = tmp_pbody;
}
if (((WithCrypto & APPLICATION_PGP) != 0) && (msg->security & APPLICATION_PGP) &&
return -1;
flags &= ~SIGN;
- pbody = tmp_pgp_pbody = tmp_pbody;
+ pbody = tmp_pbody;
+ tmp_pgp_pbody = tmp_pbody;
}
if ((WithCrypto != 0) && (msg->security & APPLICATION_SMIME) &&
if (pfcopy)
{
/* Use pfcopy to strip all spaces from fingerprint and as hint. */
- s1 = s2 = pfcopy;
+ s1 = pfcopy;
+ s2 = pfcopy;
do
{
*(s1++) = *(s2 = mutt_str_skip_whitespace(s2));
} while (*(s2++));
phint = pfcopy;
- ps = pl = NULL;
+ ps = NULL;
+ pl = NULL;
}
else
{
phint = p;
- ps = pl = NULL;
+ ps = NULL;
+ pl = NULL;
if (isid == 1)
{
if (mutt_str_strlen(pf) == 16)
n++; /* delimiter or end of string */
}
n++; /* make sure to allocate at least one byte */
- pattern = p = mutt_mem_calloc(1, n);
+ p = mutt_mem_calloc(1, n);
+ pattern = p;
STAILQ_FOREACH(np, list, entries)
{
s = np->data;
*forced_valid = 0;
/* build the key table */
- keymax = i = 0;
+ keymax = 0;
+ i = 0;
struct CryptKeyInfo **key_table = NULL;
for (k = keys; k; k = k->next)
{
{
struct CryptKeyInfo *tmp = NULL;
- *matches_endp = tmp = crypt_copy_key(k);
+ tmp = crypt_copy_key(k);
+ *matches_endp = tmp;
matches_endp = &tmp->next;
if (this_key_has_strong)
mutt_debug(5, "match.\n");
- *matches_endp = tmp = crypt_copy_key(k);
+ tmp = crypt_copy_key(k);
+ *matches_endp = tmp;
matches_endp = &tmp->next;
}
else
char *s = NULL, *d = NULL;
iconv_t cd;
- for (s = d = uid; *s;)
+ for (s = uid, d = uid; *s;)
{
if (*s == '\\' && *(s + 1) == 'x' && isxdigit((unsigned char) *(s + 2)) &&
isxdigit((unsigned char) *(s + 3)))
{
if (k)
kend = &k->next;
- *kend = k = kk;
+ *kend = kk;
+ k = kk;
if (is_sub)
{
mx_alloc_memory(ctx);
/* parse header */
- hdr = ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ hdr = ctx->hdrs[ctx->msgcount];
hdr->env = mutt_rfc822_read_header(fp, hdr, false, false);
hdr->env->newsgroups = mutt_str_strdup(nntp_data->group);
hdr->received = hdr->date_sent;
{
mutt_debug(2, "mutt_hcache_fetch %s\n", buf);
mutt_header_free(&hdr);
- ctx->hdrs[ctx->msgcount] = hdr = mutt_hcache_restore(hdata);
+ hdr = mutt_hcache_restore(hdata);
+ ctx->hdrs[ctx->msgcount] = hdr;
mutt_hcache_free(fc->hc, &hdata);
hdr->data = NULL;
hdr->read = false;
if (hdata)
{
mutt_debug(2, "mutt_hcache_fetch %s\n", buf);
- ctx->hdrs[ctx->msgcount] = hdr = mutt_hcache_restore(hdata);
+ hdr = mutt_hcache_restore(hdata);
+ ctx->hdrs[ctx->msgcount] = hdr;
mutt_hcache_free(fc.hc, &hdata);
hdr->data = NULL;
}
/* parse header */
- hdr = ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ hdr = ctx->hdrs[ctx->msgcount];
hdr->env = mutt_rfc822_read_header(fp, hdr, false, false);
hdr->received = hdr->date_sent;
mutt_file_fclose(&fp);
if (ctx->msgcount >= ctx->hdrmax)
mx_alloc_memory(ctx);
- ctx->hdrs[ctx->msgcount] = hdr = mutt_hcache_restore(hdata);
+ hdr = mutt_hcache_restore(hdata);
+ ctx->hdrs[ctx->msgcount] = hdr;
mutt_hcache_free(hc, &hdata);
hdr->data = NULL;
if (hdr->deleted)
/* parse header */
if (ctx->msgcount == ctx->hdrmax)
mx_alloc_memory(ctx);
- struct Header *hdr = ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ ctx->hdrs[ctx->msgcount] = mutt_header_new();
+ struct Header *hdr = ctx->hdrs[ctx->msgcount];
hdr->data = mutt_mem_calloc(1, sizeof(struct NntpHeaderData));
hdr->env = mutt_rfc822_read_header(fp, hdr, false, false);
mutt_file_fclose(&fp);
mutt_debug(2, "nm: query exclude tag '%s'\n", tag);
notmuch_query_add_tag_exclude(query, tag);
- end = tag = NULL;
+ end = NULL;
+ tag = NULL;
}
notmuch_query_set_omit_excluded(query, 1);
FREE(&buf);
mutt_debug(1, "nm: add tag: '%s'\n", (*tag == '+') ? tag + 1 : tag);
notmuch_message_add_tag(msg, (*tag == '+') ? tag + 1 : tag);
}
- end = tag = NULL;
+ end = NULL;
+ tag = NULL;
}
notmuch_message_thaw(msg);
else if (strcmp(tag, "flagged") == 0)
mutt_set_flag(ctx, hdr, MUTT_FLAG, 1);
}
- end = tag = NULL;
+ end = NULL;
+ tag = NULL;
}
FREE(&buf);
if (!ctx->quiet)
mutt_progress_update(&progress, i, -1);
- *old = *new = '\0';
+ *old = '\0';
+ *new = '\0';
if (hd->oldpath)
{
(*line_info)[ch].type = -1;
(*line_info)[ch].search_cnt = -1;
(*line_info)[ch].syntax = mutt_mem_malloc(sizeof(struct Syntax));
- ((*line_info)[ch].syntax)[0].first = ((*line_info)[ch].syntax)[0].last = -1;
+ ((*line_info)[ch].syntax)[0].first = -1;
+ ((*line_info)[ch].syntax)[0].last = -1;
}
}
memcpy(rd->pager_window, MuttIndexWindow, sizeof(struct MuttWindow));
memcpy(rd->pager_status_window, MuttStatusWindow, sizeof(struct MuttWindow));
- rd->index_status_window->rows = rd->index_window->rows = 0;
+ rd->index_status_window->rows = 0;
+ rd->index_window->rows = 0;
if (IsHeader(rd->extra) && PagerIndexLines)
{
do
{
mutt_window_move(rd->pager_window, 0, 0);
- rd->curline = rd->oldtopline = rd->topline;
+ rd->curline = rd->topline;
+ rd->oldtopline = rd->topline;
rd->lines = 0;
rd->force_redraw = false;
rd.line_info[i].type = -1;
rd.line_info[i].search_cnt = -1;
rd.line_info[i].syntax = mutt_mem_malloc(sizeof(struct Syntax));
- (rd.line_info[i].syntax)[0].first = (rd.line_info[i].syntax)[0].last = -1;
+ (rd.line_info[i].syntax)[0].first = -1;
+ (rd.line_info[i].syntax)[0].last = -1;
}
mutt_compile_help(helpstr, sizeof(helpstr), MENU_PAGER, PagerHelp);
min->tm_mday = max->tm_mday;
max->tm_mday = tmp;
- min->tm_hour = min->tm_min = min->tm_sec = 0;
+ min->tm_hour = 0;
+ min->tm_min = 0;
+ min->tm_sec = 0;
max->tm_hour = 23;
- max->tm_min = max->tm_sec = 59;
+ max->tm_min = 59;
+ max->tm_sec = 59;
}
}
exact++;
}
tm->tm_hour = 23;
- tm->tm_min = tm->tm_sec = 59;
+ tm->tm_min = 59;
+ tm->tm_sec = 59;
/* force negative offset */
get_offset(tm, buffer.data + 1, -1);
{
/* start at the beginning of the day in question */
memcpy(&min, &max, sizeof(max));
- min.tm_hour = min.tm_sec = min.tm_min = 0;
+ min.tm_hour = 0;
+ min.tm_sec = 0;
+ min.tm_min = 0;
}
}
else
struct tm *tm = localtime(&now);
memcpy(&base_min, &min, sizeof(base_min));
memcpy(&min, tm, sizeof(min));
- min.tm_hour = min.tm_sec = min.tm_min = 0;
+ min.tm_hour = 0;
+ min.tm_sec = 0;
+ min.tm_min = 0;
}
/* preset max date for relative offsets,
mutt_str_strfcpy(err->data, _("No current message"), err->dsize);
return RANGE_E_CTX;
}
- pat->min = pat->max = CTX_MSGNO(Context);
+ pat->max = CTX_MSGNO(Context);
+ pat->min = pat->max;
}
/* Since we don't enforce order, we must swap bounds if they're backward */
return;
}
- url = p = mutt_mem_calloc(strlen(PopHost) + 7, sizeof(char));
+ p = mutt_mem_calloc(strlen(PopHost) + 7, sizeof(char));
+ url = p;
if (url_check_scheme(PopHost) == U_UNKNOWN)
{
strcpy(url, "pop://");
for (queryp = results; queryp; queryp = queryp->next)
menu->max++;
- menu->data = QueryTable = mutt_mem_calloc(menu->max, sizeof(struct Entry));
+ QueryTable = mutt_mem_calloc(menu->max, sizeof(struct Entry));
+ menu->data = QueryTable;
int i;
for (i = 0, queryp = results; queryp; queryp = queryp->next, i++)
{
int vindex, rindex, curlevel;
- vindex = rindex = 0;
+ vindex = 0;
+ rindex = 0;
while (rindex < actx->idxlen)
{
for (; m; m = m->next)
{
- need_secured = secured = 0;
+ need_secured = 0;
+ secured = 0;
if (((WithCrypto & APPLICATION_SMIME) != 0) && mutt_is_application_smime(m))
{
if (c >= MuttIndexWindow->cols)
{
- oc = c = MIX_HOFFSET;
+ oc = MIX_HOFFSET;
+ c = MIX_HOFFSET;
r++;
}
last = last->next;
}
else
- last = top = a;
+ {
+ last = a;
+ top = a;
+ }
a = a->next;
last->next = NULL;
}
mutt_addr_free(&tmp);
}
else
- last = top = tmp;
+ {
+ last = tmp;
+ top = tmp;
+ }
}
}
return top;
ptr = ptr->next;
}
else
- ptr = top = mutt_addr_copy(t);
+ {
+ top = mutt_addr_copy(t);
+ ptr = top;
+ }
}
}
}
last = tmp;
}
else
- last = msg->content = tmp;
+ {
+ last = tmp;
+ msg->content = tmp;
+ }
}
}
}
}
}
- p = last = line = (char *) v;
+ p = v;
+ last = v;
+ line = v;
while (p && *p)
{
p = strchr(p, '\n');
* need to scan for the framing interval */
if (SidebarNewMailOnly)
{
- TopIndex = BotIndex = -1;
+ TopIndex = -1;
+ BotIndex = -1;
while (BotIndex < HilIndex)
{
TopIndex = BotIndex + 1;
}
/* Check if any elements in SmtpAuthenticators is "plain" */
- for (method = delim = SmtpAuthenticators;
+ for (method = SmtpAuthenticators, delim = SmtpAuthenticators;
*delim && (delim = mutt_str_strchrnul(method, ':')); method = delim + 1)
{
if (mutt_str_strncasecmp(method, "plain", 5) == 0)