Fix build warning

This commit is contained in:
Andrea Mazzoleni 2026-04-23 12:31:08 +02:00
parent 34b6a47e5e
commit ab5bc0ead8

View file

@ -198,7 +198,7 @@ static int filter_apply(struct snapraid_filter* filter, struct snapraid_filter**
ret = filter->direction;
} else {
/* then try to match after all the / presents */
char* slash = strchr(path, '/');
const char* slash = strchr(path, '/');
while (slash) {
if (wnmatch_sub(filter->pattern, slash + 1, match_sub) == 0) {
ret = filter->direction;