Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusNi committed Jun 4, 2024
1 parent 0debc5b commit bf1948e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/commonutils/FileUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
{
Expand All @@ -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
Expand Down

0 comments on commit bf1948e

Please sign in to comment.