sh(1): replace 0 with NULL for pointers.
Found with devel/coccinelle. Reviewed by: jilles
This commit is contained in:
parent
62b10973b1
commit
74136dc300
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user