Changeset 418
- Timestamp:
- Jun 27, 2013, 11:18:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r413 r418 1673 1673 addMapsToMaps(&request_input_real_format,tmpmaps); 1674 1674 } 1675 1675 1676 1676 #ifdef DEBUG 1677 1677 fprintf(stderr,"******TMPMAPS*****\n"); … … 1749 1749 while(cur1!=NULL && cur1->type != XML_ELEMENT_NODE) 1750 1750 cur1=cur1->next; 1751 int cur1cnt=0; 1751 1752 while(cur1){ 1752 1753 /** … … 1769 1770 tmpmaps->name=strdup((char*)val); 1770 1771 } 1772 if(asRaw==true) 1773 addToMap(request_inputs,"RawDataOutput",(char*)val); 1774 else{ 1775 if(cur1cnt==0) 1776 addToMap(request_inputs,"ResponseDocument",(char*)val); 1777 else{ 1778 map* tt=getMap(request_inputs,"ResponseDocument"); 1779 char* tmp=strdup(tt->value); 1780 free(tt->value); 1781 tt->value=(char*)malloc((strlen(tmp)+strlen((char*)val)+1)*sizeof(char)); 1782 sprintf(tt->value,"%s;%s",tmp,(char*)val); 1783 free(tmp); 1784 } 1785 } 1786 cur1cnt+=1; 1771 1787 xmlFree(val); 1772 1788 } … … 1869 1885 xmlFree(val); 1870 1886 } 1871 if(request_output_real_format==NULL)1872 request_output_real_format=dupMaps(&tmpmaps);1873 else1874 addMapsToMaps(&request_output_real_format,tmpmaps);1875 1887 cur2=cur2->next; 1876 1888 while(cur2!=NULL && cur2->type != XML_ELEMENT_NODE) … … 1883 1895 } 1884 1896 } 1897 if(request_output_real_format==NULL) 1898 request_output_real_format=dupMaps(&tmpmaps); 1899 else 1900 addMapsToMaps(&request_output_real_format,tmpmaps); 1885 1901 if(tmpmaps!=NULL){ 1886 1902 freeMaps(&tmpmaps);
Note: See TracChangeset
for help on using the changeset viewer.