Fix merge: Initialise data before accessing them.

This commit is contained in:
Klaas Freitag 2012-10-28 11:31:25 +01:00
parent 2bb52ef6f9
commit 8afe182e0c

View file

@ -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;