summaryrefslogtreecommitdiff
path: root/usr.bin/xargs
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-05-04 05:53:02 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-05-04 05:53:02 +0000
commit3dca1afc6053ffa7c4935038b43bb586d5fdd625 (patch)
treebaa2da69b3b885c93815e3f136a9e20bf04381ce /usr.bin/xargs
parentad1e033e00596671fc9cf539a014a5611227c5b0 (diff)
downloadsrc-test2-3dca1afc6053ffa7c4935038b43bb586d5fdd625.tar.gz
src-test2-3dca1afc6053ffa7c4935038b43bb586d5fdd625.zip
Notes
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r--usr.bin/xargs/xargs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index b14315afe3c5..4b114adc6a75 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -183,7 +183,7 @@ main(int argc, char **argv)
* shell. Echo is the default. Set up pointers for the user's
* arguments.
*/
- if (!*argv)
+ if (*argv == NULL)
cnt = strlen((*bxp++ = echo));
else {
do {
@@ -195,7 +195,7 @@ main(int argc, char **argv)
break;
}
cnt += strlen(*bxp++ = *argv) + 1;
- } while (*++argv);
+ } while (*++argv != NULL);
}
/*
@@ -446,7 +446,7 @@ run(char **argv)
if (tflag || pflag) {
(void)fprintf(stderr, "%s", *argv);
- for (p = argv + 1; *p; ++p)
+ for (p = argv + 1; *p != NULL; ++p)
(void)fprintf(stderr, " %s", *p);
if (pflag && (ttyfp = fopen("/dev/tty", "r")) != NULL) {
(void)fprintf(stderr, "?");