Author: ngie
Date: Sat Jun 11 01:44:27 2016
New Revision: 301821
URL: https://svnweb.freebsd.org/changeset/base/301821

Log:
  MFstable/10 r301820:
  
  MFC r301704:
  
  Test for strchr(3) returning NULL, not 0

Modified:
  stable/9/lib/libc/rpc/getnetpath.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/lib/   (props changed)
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/rpc/getnetpath.c
==============================================================================
--- stable/9/lib/libc/rpc/getnetpath.c  Sat Jun 11 01:37:59 2016        
(r301820)
+++ stable/9/lib/libc/rpc/getnetpath.c  Sat Jun 11 01:44:27 2016        
(r301821)
@@ -265,7 +265,7 @@ int token;          /* char to parse string for 
     *cp++ = '\0';              /* null-terminate token */
     /* get rid of any backslash escapes */
     ep = npp;
-    while ((np = strchr(ep, '\\')) != 0) {
+    while ((np = strchr(ep, '\\')) != NULL) {
        if (np[1] == '\\')
            np++;
        strcpy(np, (ep = &np[1]));  /* XXX: overlapping string copy */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to