diff --git a/modules/csync_owncloud.c b/modules/csync_owncloud.c index 19a7f5a24..e2372c90e 100644 --- a/modules/csync_owncloud.c +++ b/modules/csync_owncloud.c @@ -319,7 +319,7 @@ static int http_result_code_from_session() { static void set_errno_from_session() { int err = http_result_code_from_session(); - if( err = EIO ) { + if( err == EIO ) { errno = EIO; } else { set_errno_from_http_errcode(err); diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 40d58a5aa..99c95b022 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -1102,7 +1102,6 @@ static int _csync_correct_id(CSYNC *ctx) { c_list_t *seen_dirs = NULL; c_list_t *list = NULL; c_rbtree_t *tree = NULL; - const char *replica = NULL; char *path = NULL; if (ctx->current != REMOTE_REPLICA) {