Move the check on the progressdb to the correct place, no crash anymore.

This commit is contained in:
Klaas Freitag 2013-09-12 15:37:10 +02:00
parent 62f4d118ea
commit e09cb0c068

View file

@ -190,15 +190,17 @@ CSYNC_EXCLUDE_TYPE csync_excluded(CSYNC *ctx, const char *path, int filetype) {
SAFE_FREE(dname);
goto out;
}
SAFE_FREE(bname);
SAFE_FREE(dname);
rc = csync_fnmatch(".csync-progressdatabase*", bname, 0);
if (rc == 0) {
match = CSYNC_FILE_SILENTLY_EXCLUDED;
SAFE_FREE(bname);
SAFE_FREE(dname);
goto out;
}
SAFE_FREE(bname);
SAFE_FREE(dname);
if (ctx->excludes == NULL) {
goto out;
}