From af2b708671a354ae9dad258d3805e678b301c302 Mon Sep 17 00:00:00 2001 From: ngie Date: Sat, 11 Jun 2016 01:37:59 +0000 Subject: [PATCH] MFC r301704: Test for strchr(3) returning NULL, not 0 git-svn-id: svn://svn.freebsd.org/base/stable/10@301820 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 29155c7af..f68345ce1 100644 --- a/lib/libc/rpc/getnetpath.c +++ b/lib/libc/rpc/getnetpath.c @@ -264,7 +264,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