mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
csync_update: Handle error if current_fs is zero.
This commit is contained in:
parent
7bafc92df3
commit
6930cd6687
1 changed files with 2 additions and 2 deletions
|
@ -637,9 +637,8 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
|
||||||
if( previous_fs ) {
|
if( previous_fs ) {
|
||||||
previous_fs->has_ignored_files = true;
|
previous_fs->has_ignored_files = true;
|
||||||
}
|
}
|
||||||
|
goto done;
|
||||||
}
|
}
|
||||||
goto done;
|
|
||||||
// previously return 0;
|
|
||||||
} else if(errno == ENOENT) {
|
} else if(errno == ENOENT) {
|
||||||
asp = asprintf( &ctx->error_string, "%s", uri);
|
asp = asprintf( &ctx->error_string, "%s", uri);
|
||||||
if (asp < 0) {
|
if (asp < 0) {
|
||||||
|
@ -661,6 +660,7 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
|
||||||
}
|
}
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
/* if current_fs is not defined here, better throw an error */
|
||||||
} else {
|
} else {
|
||||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "opendir failed for %s - errno %d", uri, errno);
|
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "opendir failed for %s - errno %d", uri, errno);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue