From 01997ae95f27edb2bcf4a8fc639844ef3004cf87 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 14 Feb 2026 17:47:41 +0100 Subject: [PATCH] rename var mem content --- src/xml.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/xml.c b/src/xml.c index ad9ff65..3b6c672 100644 --- a/src/xml.c +++ b/src/xml.c @@ -371,10 +371,10 @@ void add_entry(const char* date, uint8_t end_hour, uint8_t end_min) { - memFile* fileContent = _init_mem(); - _read_stdin_into_memory(fileContent); + memFile* file_content = _init_mem(); + _read_stdin_into_memory(file_content); - char* saldostr = _read_last_saldo(fileContent); + char* saldostr = _read_last_saldo(file_content); const time_t saldo = get_seconds_from_str(saldostr); xmlChar* xmlElemContent = NULL; @@ -387,7 +387,7 @@ void add_entry(const char* date, free(xmlElemContent); xmlElemContent = NULL; - xmlTextReaderPtr xmlreader = xmlReaderForMemory(fileContent->data, fileContent->size, NULL, "UTF-8", 0); + xmlTextReaderPtr xmlreader = xmlReaderForMemory(file_content->data, file_content->size, NULL, "UTF-8", 0); xmlNodePtr xmlnode = NULL; xmlTextWriterStartDocument(xmlwriter, "1.0", "UTF-8", NULL); @@ -423,9 +423,9 @@ void add_entry(const char* date, xmlDictCleanup(); #endif - free_mem(fileContent); - free(fileContent); - fileContent = NULL; + free_mem(file_content); + free(file_content); + file_content = NULL; free(xmlElemContent); xmlElemContent = NULL; free(saldostr); -- 2.47.3