From 0160be06f5f67dc37872ad9404dbf8fd0fa2fc03 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sun, 15 Apr 2012 14:35:38 +0200 Subject: [PATCH] ownCloud: Fix warning condition in reader code. --- modules/csync_owncloud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csync_owncloud.c b/modules/csync_owncloud.c index 8741d6363a..4241f23e6d 100644 --- a/modules/csync_owncloud.c +++ b/modules/csync_owncloud.c @@ -744,7 +744,7 @@ static int uncompress_reader(void *userdata, const char *buf, size_t len) if( buf && writeCtx->fd ) { /* DEBUG_WEBDAV(("Writing NON compressed %d bytes\n", len)); */ - len = write(writeCtx->fd, buf, len); + written = write(writeCtx->fd, buf, len); if( len != written ) { DEBUG_WEBDAV(("WRN: uncompress_reader wrote wrong num of bytes\n")); }