From 2d6ac6ea572ca93a1ff4e32936214246cc9b2551 Mon Sep 17 00:00:00 2001 From: gjb Date: Tue, 12 Apr 2016 17:00:13 +0000 Subject: MFH Sponsored by: The FreeBSD Foundation --- bin/rcp/rcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/rcp') 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++; -- cgit v1.1