mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Fix merge: Initialise data before accessing them.
This commit is contained in:
parent
2bb52ef6f9
commit
8afe182e0c
1 changed files with 3 additions and 3 deletions
|
@ -551,15 +551,15 @@ static int _csync_treewalk_visitor(void *obj, void *data) {
|
|||
_csync_treewalk_context *twctx = NULL;
|
||||
TREE_WALK_FILE trav;
|
||||
|
||||
cur = (csync_file_stat_t *) obj;
|
||||
ctx = (CSYNC *) data;
|
||||
|
||||
if (!(ctx && obj && data)) {
|
||||
ctx->error_code = CSYNC_ERR_PARAM;
|
||||
return -1;
|
||||
}
|
||||
ctx->error_code = CSYNC_ERR_NONE;
|
||||
|
||||
cur = (csync_file_stat_t *) obj;
|
||||
ctx = (CSYNC *) data;
|
||||
|
||||
twctx = (_csync_treewalk_context*) ctx->userdata;
|
||||
if (twctx == NULL) {
|
||||
ctx->error_code = CSYNC_ERR_PARAM;
|
||||
|
|
Loading…
Reference in a new issue