struct Url url;
int len;
- if (!account || !MessageCachedir || !*MessageCachedir || !dst || !dstlen)
+ if (!account || !MessageCachedir || !*MessageCachedir || !dst || (dstlen == 0))
return -1;
/* make up a Url we can turn into a string */
{
case OP_GENERIC_SELECT_ENTRY:
- if (!state.entrylen)
+ if (state.entrylen == 0)
{
mutt_error(_("No files match the file mask"));
break;
goto bail;
}
kill_prefix = 0;
- if (!state.entrylen)
+ if (state.entrylen == 0)
{
mutt_error(_("No files match the file mask"));
break;
break;
case OP_BROWSER_VIEW_FILE:
- if (!state.entrylen)
+ if (state.entrylen == 0)
{
mutt_error(_("No files match the file mask"));
break;
menu->redraw = REDRAW_FULL;
j = 0;
}
- else if (!state.entrylen)
+ else if (state.entrylen == 0)
{
mutt_error(_("No newsgroups match the mask"));
break;
mutt_debug(1, "SASL decode failed: %s\n", sasl_errstring(rc, NULL, NULL));
goto out;
}
- } while (!sasldata->blen);
+ } while (sasldata->blen == 0);
olen = (sasldata->blen - sasldata->bpos > len) ? len :
sasldata->blen - sasldata->bpos;
if (browse_add_list_result(idata, buf, state, 0))
goto fail;
- if (!state->entrylen)
+ if (state->entrylen == 0)
{
mutt_error(_("No such folder"));
goto fail;
if (tlen && mutt_account_match(&home.account, &target.account) &&
(mutt_str_strncmp(home.mbox, target.mbox, hlen) == 0))
{
- if (!hlen)
+ if (hlen == 0)
home_match = true;
else if (ImapDelimChars)
for (delim = ImapDelimChars; *delim != '\0'; delim++)
{
*path++ = '=';
/* copy remaining path, skipping delimiter */
- if (!hlen)
+ if (hlen == 0)
hlen = -1;
memcpy(path, target.mbox + hlen + 1, tlen - hlen - 1);
path[tlen - hlen - 1] = '\0';
if (strchr(quote, *s))
{
dlen -= 2;
- if (!dlen)
+ if (dlen == 0)
break;
*pt++ = '\\';
*pt++ = *s;
t = mutt_mem_calloc(1, sizeof(struct MbTable));
slen = mutt_str_strlen(s);
- if (!slen)
+ if (slen == 0)
return t;
t->orig_str = mutt_str_strdup(s);
{
if (strpbrk(addr->personal, AddressSpecials))
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = '"';
buflen--;
*pbuf++ = '\\';
buflen--;
}
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = *pc;
buflen--;
}
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = '"';
buflen--;
}
else
{
- if (!buflen)
+ if (buflen == 0)
goto done;
mutt_str_strfcpy(pbuf, addr->personal, buflen);
len = mutt_str_strlen(pbuf);
buflen -= len;
}
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ' ';
buflen--;
if (addr->personal || (addr->mailbox && *addr->mailbox == '@'))
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = '<';
buflen--;
if (addr->mailbox)
{
- if (!buflen)
+ if (buflen == 0)
goto done;
if ((mutt_str_strcmp(addr->mailbox, "@") != 0) && !display)
{
if (addr->personal || (addr->mailbox && *addr->mailbox == '@'))
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = '>';
buflen--;
if (addr->group)
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ':';
buflen--;
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ' ';
buflen--;
}
else
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ';';
buflen--;
pbuf += len;
buflen -= len;
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ',';
buflen--;
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ' ';
buflen--;
group terminator, add a comma to separate the addresses */
if (addr->next && addr->next->mailbox && !addr->group)
{
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ',';
buflen--;
- if (!buflen)
+ if (buflen == 0)
goto done;
*pbuf++ = ' ';
buflen--;
doff = buf->dptr - buf->data;
blen = buf->dsize - doff;
/* solaris 9 vsnprintf barfs when blen is 0 */
- if (!blen)
+ if (blen == 0)
{
blen = 128;
buf->dsize += blen;
if (startpos < 0)
return NULL;
- if (!plen)
+ if (plen == 0)
{
plen = CHUNKSIZE;
pbuf = mutt_mem_malloc(plen);
/* print fixed-and-standalone, fixed-and-empty and sigsep lines as
* fixed lines */
- if ((fixed && (!fst.width || !buf_len)) || sigsep)
+ if ((fixed && ((fst.width == 0) || (buf_len == 0))) || sigsep)
{
/* if we're within a flowed paragraph, terminate it */
flush_par(s, &fst);