aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-03-14 09:41:41 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-03-14 10:21:05 +0100
commit7d393034b463ba47d882ee2202a51ac20c09e8d4 (patch)
treeb89910ba989150646009742e49550e2bb38897d5
parentea587a2162338cc221ecdc7bbe56341d51a777c8 (diff)
utils-file: fix bug in writing
Change-Id: I7da9ee72992cba4c49c0d1286a38674d3f7ed4bc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/utils-file.c1
1 files changed, 0 insertions, 1 deletions
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) {