changeset 400:b095a35a0848

Use strpbrk() instead of strchr() twice.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Jan 2023 00:06:07 +0200
parents 36621c3fe118
children 600bd0c3dd83
files sidinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Mon Dec 26 13:05:50 2022 +0200
+++ b/sidinfo.c	Tue Jan 03 00:06:07 2023 +0200
@@ -1153,7 +1153,7 @@
     pattern = filename = NULL;
     if (pt != NULL && *pt != 0)
     {
-        if (strchr(pt, '*') || strchr(pt, '?'))
+        if (strpbrk(pt, "*?"))
             pattern = th_strdup(pt);
         else
             filename = th_strdup(pt);