Crashbug und noch irgendwas, das ich vergessen habe

This commit is contained in:
Enno Rehling 2004-04-12 01:47:03 +00:00
parent 5ef4ca6261
commit 3686c6d27a
3 changed files with 5 additions and 5 deletions

View File

@ -380,8 +380,8 @@ void
creport_init(void)
{
tsf_register("report", &cr_ignore);
tsf_register("string", &cr_string);
tsf_register("order", &cr_string);
tsf_register("string", &cr_string);
tsf_register("order", &cr_string);
tsf_register("int", &cr_int);
tsf_register("unit", &cr_unit);
tsf_register("region", &cr_region);

View File

@ -573,7 +573,7 @@ parse_resources(xmlDocPtr doc)
/* reading eressea/resources/resource/function */
xpath->node = node;
result = xmlXPathEvalExpression(BAD_CAST "function", xpath);
for (k=0;k!=result->nodesetval->nodeNr;++k) {
if (result->nodesetval!=NULL) for (k=0;k!=result->nodesetval->nodeNr;++k) {
xmlNodePtr node = result->nodesetval->nodeTab[k];
pf_generic fun;
@ -607,7 +607,7 @@ parse_resources(xmlDocPtr doc)
/* reading eressea/resources/resource/resourcelimit/function */
xpath->node = node;
result = xmlXPathEvalExpression(BAD_CAST "resourcelimit/function", xpath);
for (k=0;k!=result->nodesetval->nodeNr;++k) {
if (result->nodesetval!=NULL) for (k=0;k!=result->nodesetval->nodeNr;++k) {
attrib * a = a_find(rtype->attribs, &at_resourcelimit);
xmlNodePtr node = result->nodesetval->nodeTab[k];
pf_generic fun;