Changeset 498


Ignore:
Timestamp:
Aug 13, 2014, 7:42:16 PM (10 years ago)
Author:
djay
Message:

Avoid issue repported on the mailing list.

File:
1 edited

Legend:

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

    r496 r498  
    18401840                  int buffersize;
    18411841                  xmlNodePtr cur5=cur4->children;
    1842                   while(cur5!=NULL &&cur5->type!=XML_ELEMENT_NODE && cur5->type!=XML_CDATA_SECTION_NODE)
     1842                  while(cur5!=NULL && cur5->type!=XML_ELEMENT_NODE && cur5->type!=XML_CDATA_SECTION_NODE)
    18431843                    cur5=cur5->next;
    1844                   if(cur5->type!=XML_CDATA_SECTION_NODE){
     1844                  if(cur5!=NULL && cur5->type!=XML_CDATA_SECTION_NODE){
    18451845                    xmlDocSetRootElement(doc1,cur5);
    18461846                    xmlDocDumpFormatMemoryEnc(doc1, &mv, &buffersize, "utf-8", 1);
     
    18511851                  }
    18521852                }
    1853                 addToMap(tmpmaps->content,"value",(char*)mv);
    1854                 xmlFree(mv);
     1853                if(mv!=NULL){
     1854                  addToMap(tmpmaps->content,"value",(char*)mv);
     1855                  xmlFree(mv);
     1856                }
    18551857              }else{
    18561858                xmlChar* tmp=xmlNodeListGetRawString(doc,cur4->xmlChildrenNode,0);
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