xmlElemName = xmlCharStrdup("wochentag");
xmlElemContent = xmlCharStrdup(value);
xmlTextWriterWriteAttribute(xmlWriter, xmlElemName, xmlElemContent);
- memset(value, 0, MAX_STRING_LENGTH);
+ free(value);
+ value = NULL;
free(xmlElemName);
xmlElemName = NULL;
free(xmlElemContent);
xmlElemContent = NULL;
+ value = malloc(sizeof(char) * MAX_STRING_LENGTH);
sprintf(value, "%04d-%02d-%02d",
fabend->now_tm->tm_year + 1900,
fabend->now_tm->tm_mon + 1,