Skip to content

Commit

Permalink
11297 chmod: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: John Levon <john.levon@joyent.com>
Approved by: Garrett D'Amore <garrett@damore.org>
  • Loading branch information
tsoome committed Jul 6, 2019
1 parent 95c7451 commit 0f063ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/cmd/chmod/chmod.c
Expand Up @@ -553,7 +553,7 @@ parseargs(int ac, char *av[])
/* process the arguments */

for (i = mac = 0;
(av[i] != (char *)NULL) && (av[i][0] != (char)NULL);
(av[i] != NULL) && (av[i][0] != '\0');
i++) {
if (!fflag && av[i][0] == '-') {
/*
Expand Down

0 comments on commit 0f063ce

Please sign in to comment.