Project

General

Profile

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

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

View differences:

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