rcp(1): replace 0 with NULL for pointers.

Found with devel/coccinelle.
This commit is contained in:
Pedro F. Giffuni 2016-04-11 17:24:26 +00:00
parent b2d7040c1c
commit 3b7175bdc7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297826

View File

@ -447,7 +447,7 @@ rsource(char *name, struct stat *statp)
return;
}
last = strrchr(name, '/');
if (last == 0)
if (last == NULL)
last = name;
else
last++;