mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -05:00
Fix build warning
This commit is contained in:
parent
34b6a47e5e
commit
ab5bc0ead8
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ static int filter_apply(struct snapraid_filter* filter, struct snapraid_filter**
|
||||||
ret = filter->direction;
|
ret = filter->direction;
|
||||||
} else {
|
} else {
|
||||||
/* then try to match after all the / presents */
|
/* then try to match after all the / presents */
|
||||||
char* slash = strchr(path, '/');
|
const char* slash = strchr(path, '/');
|
||||||
while (slash) {
|
while (slash) {
|
||||||
if (wnmatch_sub(filter->pattern, slash + 1, match_sub) == 0) {
|
if (wnmatch_sub(filter->pattern, slash + 1, match_sub) == 0) {
|
||||||
ret = filter->direction;
|
ret = filter->direction;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue