summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-04-12 17:00:13 +0000
committergjb <gjb@FreeBSD.org>2016-04-12 17:00:13 +0000
commit2d6ac6ea572ca93a1ff4e32936214246cc9b2551 (patch)
treec3cdd1c8ee2d4ab6be944ececea30f9adb0abca4 /bin/rcp
parentb1a356c5589c598d7abc2975bd356c87dcaba309 (diff)
downloadFreeBSD-src-2d6ac6ea572ca93a1ff4e32936214246cc9b2551.zip
FreeBSD-src-2d6ac6ea572ca93a1ff4e32936214246cc9b2551.tar.gz
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'bin/rcp')
-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