Feature #780 » 0018-Make-root-node-case-insensitive.patch
| 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); | ||