Skip to content

Commit 548e76f

Browse files
ocd
1 parent 3b59204 commit 548e76f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
int
77
main(void) {
88
// positive
9-
assert(1 == wildcardcmp("foo*", "foo"));
9+
assert(1 == wildcardcmp("foo*", "foo"));
1010
assert(1 == wildcardcmp("foobar", "foobar"));
1111
assert(1 == wildcardcmp("*", "foobar"));
1212
assert(1 == wildcardcmp("foo*", "foobar"));

wildcardcmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ wildcardcmp(const char *pattern, const char *string) {
1414
while (1) {
1515
if (!*string) {
1616
if (!*pattern) return 1;
17-
if ('*' == *pattern) return 1;
17+
if ('*' == *pattern) return 1;
1818
if (!*s) return 0;
1919
string = s++;
2020
pattern = w;

0 commit comments

Comments
 (0)