From 06e1d117df68bbefb50eb59acd2356eb2a35e3f4 Mon Sep 17 00:00:00 2001 From: ngie Date: Sat, 11 Jun 2016 01:44:27 +0000 Subject: [PATCH] MFstable/10 r301820: MFC r301704: Test for strchr(3) returning NULL, not 0 git-svn-id: svn://svn.freebsd.org/base/stable/9@301821 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libc/rpc/getnetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/rpc/getnetpath.c b/lib/libc/rpc/getnetpath.c index 22c3ffc47..0d375f156 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -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 */ -- 2.45.0