From 317494e9985590bbf975f934c0f1425596744939 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 20 Jul 2016 09:45:37 +0100 Subject: 38853: use strchr() --- Src/glob.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Src') diff --git a/Src/glob.c b/Src/glob.c index 146b4dbbc..850405fd4 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -1922,13 +1922,7 @@ zglob(LinkList list, LinkNode np, int nountok) */ for (gmptr = matchbuf; gmptr < matchptr; gmptr++) { - char *nptr; - for (nptr = gmptr->name; *nptr; nptr++) - { - if (*nptr == Meta) - break; - } - if (*nptr == Meta) + if (strchr(gmptr->name, Meta)) { int dummy; gmptr->uname = dupstring(gmptr->name); -- cgit 1.4.1