From: José Bollo Date: Tue, 14 Mar 2017 08:41:41 +0000 (+0100) Subject: utils-file: fix bug in writing X-Git-Tag: x-last-without-systemd~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=7d393034b463ba47d882ee2202a51ac20c09e8d4 utils-file: fix bug in writing Change-Id: I7da9ee72992cba4c49c0d1286a38674d3f7ed4bc Signed-off-by: José Bollo --- 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) {