summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-11 17:24:26 +0000
committerpfg <pfg@FreeBSD.org>2016-04-11 17:24:26 +0000
commit9880f25a5f8f1309fa489fee0de5dd9d202bc8ba (patch)
tree4308f3fa2b1a1111ca0f58e241583fcb1cfd233a /bin
parent26836fccd261358467b3d92e77ff4695af286de9 (diff)
downloadFreeBSD-src-9880f25a5f8f1309fa489fee0de5dd9d202bc8ba.zip
FreeBSD-src-9880f25a5f8f1309fa489fee0de5dd9d202bc8ba.tar.gz
rcp(1): replace 0 with NULL for pointers.
Found with devel/coccinelle.
Diffstat (limited to 'bin')
-rw-r--r--bin/rcp/rcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 186dde6..42f1702 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -447,7 +447,7 @@ rsource(char *name, struct stat *statp)
return;
}
last = strrchr(name, '/');
- if (last == 0)
+ if (last == NULL)
last = name;
else
last++;
OpenPOWER on IntegriCloud