forked from github/server
Crashbug und noch irgendwas, das ich vergessen habe
This commit is contained in:
parent
5ef4ca6261
commit
3686c6d27a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue