Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69349
b: refs/heads/master
c: 317b50b
h: refs/heads/master
i:
  69347: e2f68f7
v: v3
  • Loading branch information
Andrew Paprocki authored and Jeff Garzik committed Oct 15, 2007
1 parent 883f178 commit e7d70d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f73a6880183dd11b97d70e738cf82d15931d98b
refs/heads/master: 317b50b8ad2f544a12c8f29d99a91225e8c5db1d
8 changes: 7 additions & 1 deletion trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4014,8 +4014,14 @@ int strn_pattern_cmp(const char *patt, const char *name, int wildchar)
p = strchr(patt, wildchar);
if (p && ((*(p + 1)) == 0))
len = p - patt;
else
else {
len = strlen(name);
if (!len) {
if (!*patt)
return 0;
return -1;
}
}

return strncmp(patt, name, len);
}
Expand Down

0 comments on commit e7d70d2

Please sign in to comment.