match: Reformat match_pattern

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2022-02-09 17:16:41 +01:00
parent 314c57d414
commit 354438e758

View File

@@ -52,6 +52,7 @@
static int match_pattern(const char *s, const char *pattern, size_t limit)
{
bool had_asterisk = false;
if (s == NULL || pattern == NULL || limit <= 0) {
return 0;
}
@@ -63,7 +64,7 @@ static int match_pattern(const char *s, const char *pattern, size_t limit)
}
while (*pattern == '*') {
/* Skip the asterisk. */
/* Skip all the asterisks. */
had_asterisk = true;
pattern++;
}