From bf1948e85c50e18031f4b78b34c6a9806d670c19 Mon Sep 17 00:00:00 2001 From: "Marius Niculescu (MariusNi)" Date: Tue, 4 Jun 2024 16:14:52 -0700 Subject: [PATCH] Work in progress --- src/common/commonutils/FileUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/commonutils/FileUtils.c b/src/common/commonutils/FileUtils.c index 28c7dcc8b..72853769c 100644 --- a/src/common/commonutils/FileUtils.c +++ b/src/common/commonutils/FileUtils.c @@ -104,7 +104,7 @@ bool SavePayloadToFile(const char* fileName, const char* payload, const int payl bool AppendPayloadToFile(const char* fileName, const char* payload, const int payloadSizeBytes, void* log) { char* fileContents = NULL; - int status = 0; + bool reasult = false; if (NULL != (fileContents = LoadStringFromFile(fileName, false, log))) { @@ -114,7 +114,7 @@ bool AppendPayloadToFile(const char* fileName, const char* payload, const int pa SaveToFile(fileName, "a", "\n", 1, log); } - status = SaveToFile(fileName, "a", payload, payloadSizeBytes, log); + result = SaveToFile(fileName, "a", payload, payloadSizeBytes, log); FREE_MEMORY(fileContents); } else