Project

General

Profile

Feature #780 » 0013-Make-root-node-case-insensitive.patch

S3_2 - Marko Lindqvist, 08/16/2024 05:57 PM

View differences:

utility/registry_xml.c
secfile = secfile_new(TRUE);
xmlroot = xmlDocGetRootElement(sec_doc);
if (xmlroot == NULL || strcmp((const char *)xmlroot->name, "Freeciv")) {
if (xmlroot == NULL
|| fc_strcasecmp((const char *)xmlroot->name, "Freeciv")) {
/* TRANS: do not translate <Freeciv> */
log_error(_("XML-file has no root node <Freeciv>"));
secfile_destroy(secfile);
(2-2/2)