summaryrefslogtreecommitdiff
path: root/src/exclude.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exclude.c')
-rw-r--r--src/exclude.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exclude.c b/src/exclude.c
index 7344a32..d51ffb5 100644
--- a/src/exclude.c
+++ b/src/exclude.c
@@ -89,7 +89,7 @@ int matchExclude(char *path) {
for(c = path; *c && !matched; c++)
if(*c == '/' && c[1] != '/')
matched = !fnmatch(n->pattern, c+1, 0);
- } while((n = n->next) != NULL);
+ } while((n = n->next) != NULL && !matched);
return(matched);
}