about summary refs log tree commit diff
path: root/t/helper/test-windows-named-pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-windows-named-pipe.c')
-rw-r--r--t/helper/test-windows-named-pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-windows-named-pipe.c b/t/helper/test-windows-named-pipe.c
index b4b752b01aaf..ae52183e6344 100644
--- a/t/helper/test-windows-named-pipe.c
+++ b/t/helper/test-windows-named-pipe.c
@@ -19,7 +19,7 @@ int cmd__windows_named_pipe(int argc, const char **argv)
 	if (argc < 2)
 		goto print_usage;
 	filename = argv[1];
-	if (strchr(filename, '/') || strchr(filename, '\\'))
+	if (strpbrk(filename, "/\\"))
 		goto print_usage;
 	strbuf_addf(&pathname, "//./pipe/%s", filename);