diff options
| author | Junio C Hamano <gitster@pobox.com> | 2020-03-02 15:07:20 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-03-02 15:07:20 -0800 |
| commit | ff41848e999fe89600ac0b669b59ad580401f451 (patch) | |
| tree | bace34c637fb3dec1580d5e01820b4d9ef070e60 /t/helper | |
| parent | 4cbf1a0e220d12604afeec208ed18af0766077ac (diff) | |
| parent | 2ce6d075fa35e4ea4a581c809eca3ad5631c9079 (diff) | |
| download | git-ff41848e999fe89600ac0b669b59ad580401f451.tar.gz | |
Merge branch 'rs/micro-cleanups'
Code cleanup.
* rs/micro-cleanups:
use strpbrk(3) to search for characters from a given set
quote: use isalnum() to check for alphanumeric characters
Diffstat (limited to 't/helper')
| -rw-r--r-- | t/helper/test-windows-named-pipe.c | 2 |
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 b4b752b01a..ae52183e63 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); |
