From df904f590ecbcb7fe99a834beba961276b1616ce Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 13 Sep 2022 20:55:26 -0700 Subject: [PATCH] Improve var ref. --- exclude.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exclude.c b/exclude.c index 4022e824..4bf85cb3 100644 --- a/exclude.c +++ b/exclude.c @@ -508,7 +508,7 @@ void add_implied_include(const char *arg, int skip_daemon_module) filter_rule *R_rule = new0(filter_rule); R_rule->rflags = FILTRULE_INCLUDE | FILTRULE_DIRECTORY; /* Check if our sub-path has wildcards or escaped backslashes */ - if (saw_wild && strpbrk(rule->pattern, "*[?\\")) + if (saw_wild && strpbrk(new_pat, "*[?\\")) R_rule->rflags |= FILTRULE_WILD; R_rule->pattern = strdup(new_pat); R_rule->u.slash_cnt = slash_cnt; -- 2.47.2