commit b8338fec5882d49337a58dcb4681189c3c94de34
parent 051cf87fe748082f0ef0eed06baeba12d4bf0708
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Wed, 25 Aug 2021 23:04:30 -0700
Fix overly complex multimatch return calculation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aps/match.c b/aps/match.c
@@ -49,5 +49,5 @@ multimatch(char *s, char **patterns, unsigned int len)
for (i = 0; i < len; ++i)
if (match(s, patterns[i]))
return 1;
- return len == 0 ? 1 : 0;
+ return len == 0;
}