Changeset 21 for trunk/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Sep 19, 2010, 6:07:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_service_loader.c
r20 r21 752 752 #endif 753 753 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) 756 756 cur2=cur2->next; 757 if(cur2==NULL) 758 break; 759 757 760 /** 758 761 * Indentifier … … 1011 1014 #endif 1012 1015 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) 1015 1018 cur4=cur4->next; 1019 1020 if(cur4==NULL){ 1021 break; 1022 } 1016 1023 1017 1024 if(xmlStrcasecmp(cur4->name, BAD_CAST "LiteralData")==0){ … … 1090 1097 dumpMaps(request_input_real_format); 1091 1098 #endif 1092 tmpmaps=tmpmaps->next; 1093 1099 freeMaps(&tmpmaps); 1100 free(tmpmaps); 1101 tmpmaps=NULL; 1094 1102 } 1095 #ifdef DEBUG1096 dumpMaps(tmpmaps);1097 #endif1098 1103 } 1099 1104 #ifdef DEBUG
Note: See TracChangeset
for help on using the changeset viewer.