From ab5bc0ead8be0749f63f8b1de8bc0bf4ccecab6f Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 23 Apr 2026 12:31:08 +0200 Subject: [PATCH] Fix build warning --- cmdline/elem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/elem.c b/cmdline/elem.c index f551b929..5385f096 100644 --- a/cmdline/elem.c +++ b/cmdline/elem.c @@ -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;