Date: Sat, 11 Jun 2016 01:44:27 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r301821 - stable/9/lib/libc/rpc Message-ID: <201606110144.u5B1iRIQ092786@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606110144.u5B1iRIQ092786>