svn commit: r297826 - head/bin/rcp
Pedro F. Giffuni
pfg at FreeBSD.org
Mon Apr 11 17:24:27 UTC 2016
Author: pfg
Date: Mon Apr 11 17:24:26 2016
New Revision: 297826
URL: https://svnweb.freebsd.org/changeset/base/297826
Log:
rcp(1): replace 0 with NULL for pointers.
Found with devel/coccinelle.
Modified:
head/bin/rcp/rcp.c
Modified: head/bin/rcp/rcp.c
==============================================================================
--- head/bin/rcp/rcp.c Mon Apr 11 17:23:47 2016 (r297825)
+++ head/bin/rcp/rcp.c Mon Apr 11 17:24:26 2016 (r297826)
@@ -447,7 +447,7 @@ rsource(char *name, struct stat *statp)
return;
}
last = strrchr(name, '/');
- if (last == 0)
+ if (last == NULL)
last = name;
else
last++;
More information about the svn-src-all
mailing list