From 7d393034b463ba47d882ee2202a51ac20c09e8d4 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 14 Mar 2017 09:41:41 +0100 Subject: utils-file: fix bug in writing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7da9ee72992cba4c49c0d1286a38674d3f7ed4bc Signed-off-by: José Bollo --- src/utils-file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils-file.c b/src/utils-file.c index 09eaaed..d871723 100644 --- a/src/utils-file.c +++ b/src/utils-file.c @@ -110,7 +110,6 @@ int putfile_at(int dfd, const char *file, const void *content, size_t size) if (size == (size_t)(ssize_t)-1) size = strlen(content); f = rc; - if (rc < 0) i = 0; rc = 0; while (!rc && i < size) { -- cgit 1.2.3-korg