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++;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to