summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
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