From: Bastian Dehn Date: Sat, 14 Feb 2026 16:47:41 +0000 (+0100) Subject: rename var mem content X-Git-Tag: 1.3.12^2~2 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=01997ae95f27edb2bcf4a8fc639844ef3004cf87;p=feierabend.git rename var mem content --- 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);