A couple cleanups from last commits
[wimlib] / src / capture_common.c
index 99d6af668058310869887553c8349b978dbf8564..7db7c5cfed2c616104f25c2da452f5b941f64270 100644 (file)
@@ -199,6 +199,7 @@ exclude_path(const tchar *path, size_t path_nchars,
                dummy[0] = OS_PREFERRED_PATH_SEPARATOR;
                dummy[1] = T('\0');
                path = dummy;
+               path_nchars = 1;
        }
 
        return match_pattern_list(path, path_nchars, &config->exclusion_pats) &&