diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-11 17:24:26 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-11 17:24:26 +0000 |
commit | 9880f25a5f8f1309fa489fee0de5dd9d202bc8ba (patch) | |
tree | 4308f3fa2b1a1111ca0f58e241583fcb1cfd233a /bin | |
parent | 26836fccd261358467b3d92e77ff4695af286de9 (diff) | |
download | FreeBSD-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.c | 2 |
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++; |