sh(1): replace 0 with NULL for pointers.

Found with devel/coccinelle.

Reviewed by:	jilles
This commit is contained in:
Pedro F. Giffuni 2016-04-09 20:05:39 +00:00
parent 62b10973b1
commit 74136dc300
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297761
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ umaskcmd(int argc __unused, char **argv __unused)
} else {
void *set;
INTOFF;
if ((set = setmode (ap)) == 0)
if ((set = setmode (ap)) == NULL)
error("Illegal number: %s", ap);
mask = getmode (set, ~mask & 0777);

View File

@ -628,7 +628,7 @@ simplecmd(union node **rpp, union node *redir)
/* If we don't have any redirections already, then we must reset */
/* rpp to be the address of the local redir variable. */
if (redir == 0)
if (redir == NULL)
rpp = &redir;
args = NULL;