]> granicus.if.org Git - neomutt/commit
abbreviate pointer tests against NULL
authorRichard Russon <rich@flatcap.org>
Tue, 23 May 2017 13:13:41 +0000 (14:13 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 23 May 2017 19:46:37 +0000 (20:46 +0100)
commit3ff204ca3e896928f4a1a64264705f9a98c06c10
tree56a531641a604587d1875fa3e177522a5e276036
parentc8ec5752f109592d3dfa4dd70a0d0f4629da4b37
abbreviate pointer tests against NULL

Replace:
    if (x == NULL)  ->  if (!x)
    if (x != NULL)  ->  if (x)

The conditions have only been changed for variables, not functions, e.g.
    if (fn(x) == NULL)
31 files changed:
addrbook.c
alias.c
attach.c
browser.c
color.c
commands.c
complete.c
compose.c
curs_main.c
editmsg.c
hcache/hcache.c
hdrline.c
headers.c
help.c
history.c
init.c
mutt_lua.c
mutt_notmuch.c
mutt_ssl_gnutls.c
muttlib.c
ncrypt/crypt.c
ncrypt/crypt_gpgme.c
ncrypt/pgp.c
ncrypt/pgpmicalg.c
ncrypt/smime.c
pager.c
parse.c
pattern.c
query.c
recvcmd.c
sidebar.c