X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Futils-file.c;h=09bcf2bf8ddb7a48fc0f01c5703f445e099cc5b3;hb=a123bb31906ef03ff813559aee426282416d729d;hp=09eaaed1071ed3e4a48a76919b1c689c3ec0a344;hpb=a85c80f25325c69579f3b6c6df847d631e68d0b5;p=src%2Fapp-framework-main.git diff --git a/src/utils-file.c b/src/utils-file.c index 09eaaed..09bcf2b 100644 --- a/src/utils-file.c +++ b/src/utils-file.c @@ -1,5 +1,5 @@ /* - Copyright 2017 IoT.bzh + Copyright (C) 2015-2020 IoT.bzh author: José Bollo @@ -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) {