Moved the setting of ret->match_flags up a little in make_exclude().
authorWayne Davison <wayned@samba.org>
Sun, 16 May 2004 14:08:34 +0000 (14:08 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 16 May 2004 14:08:34 +0000 (14:08 +0000)
exclude.c

index 78d9c8c..1bfbf82 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -84,14 +84,14 @@ static void make_exclude(struct exclude_list_struct *listp, const char *pat,
        for (cp = ret->pattern; (cp = strchr(cp, '/')) != NULL; cp++)
                ret->slash_cnt++;
 
+       ret->match_flags = mflags;
+
        if (!listp->tail)
                listp->head = listp->tail = ret;
        else {
                listp->tail->next = ret;
                listp->tail = ret;
        }
-
-       ret->match_flags = mflags;
 }
 
 static void free_exclude(struct exclude_struct *ex)