Changeset 21 for trunk


Ignore:
Timestamp:
Sep 19, 2010, 6:07:06 PM (14 years ago)
Author:
djay
Message:

Small fix in the XML parser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/zoo_service_loader.c

    r20 r21  
    752752#endif
    753753        xmlNodePtr cur2=cur->children;
    754         while(cur2){
    755           while(cur2->type!=XML_ELEMENT_NODE)
     754        while(cur2!=NULL){
     755          while(cur2!=NULL && cur2->type!=XML_ELEMENT_NODE)
    756756            cur2=cur2->next;
     757          if(cur2==NULL)
     758            break;
     759         
    757760          /**
    758761           * Indentifier
     
    10111014#endif
    10121015            xmlNodePtr cur4=cur2->children;
    1013             while(cur4){
    1014               while(cur4->type!=XML_ELEMENT_NODE)
     1016            while(cur4!=NULL){
     1017              while(cur4!=NULL && cur4->type!=XML_ELEMENT_NODE)
    10151018                cur4=cur4->next;
     1019
     1020              if(cur4==NULL){
     1021                break;
     1022              }
    10161023
    10171024              if(xmlStrcasecmp(cur4->name, BAD_CAST "LiteralData")==0){
     
    10901097        dumpMaps(request_input_real_format);
    10911098#endif
    1092         tmpmaps=tmpmaps->next;
    1093              
     1099        freeMaps(&tmpmaps);
     1100        free(tmpmaps);
     1101        tmpmaps=NULL;
    10941102      }
    1095 #ifdef DEBUG
    1096       dumpMaps(tmpmaps);
    1097 #endif
    10981103    }
    10991104#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png