- Timestamp:
- Jan 9, 2019, 4:11:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/response_print.c
r888 r890 79 79 } 80 80 if(prefix!=NULL){ 81 char* tmp0= strdup(serv->name);81 char* tmp0=zStrdup(serv->name); 82 82 free(serv->name); 83 83 serv->name=(char*)malloc((strlen(prefix)+strlen(tmp0)+1)*sizeof(char)); … … 183 183 nbNs++; 184 184 currId=0; 185 nsName[currId]= strdup(name);185 nsName[currId]=zStrdup(name); 186 186 usedNs[currId]=xmlNewNs(nr,BAD_CAST url,BAD_CAST name); 187 187 }else{ … … 190 190 nbNs++; 191 191 currId=nbNs-1; 192 nsName[currId]= strdup(name);192 nsName[currId]=zStrdup(name); 193 193 usedNs[currId]=xmlNewNs(nr,BAD_CAST url,BAD_CAST name); 194 194 } … … 255 255 if(soap!=NULL && strcasecmp(soap->value,"true")==0){ 256 256 int lNbNs=nbNs; 257 nsName[lNbNs]= strdup("soap");257 nsName[lNbNs]=zStrdup("soap"); 258 258 usedNs[lNbNs]=xmlNewNs(NULL,BAD_CAST "http://www.w3.org/2003/05/soap-envelope",BAD_CAST "soap"); 259 259 nbNs++; 260 260 xmlNodePtr nr = xmlNewNode(usedNs[lNbNs], BAD_CAST "Envelope"); 261 nsName[nbNs]= strdup("soap");261 nsName[nbNs]=zStrdup("soap"); 262 262 usedNs[nbNs]=xmlNewNs(nr,BAD_CAST "http://www.w3.org/2003/05/soap-envelope",BAD_CAST "soap"); 263 263 nbNs++; 264 nsName[nbNs]= strdup("xsi");264 nsName[nbNs]=zStrdup("xsi"); 265 265 usedNs[nbNs]=xmlNewNs(nr,BAD_CAST "http://www.w3.org/2001/XMLSchema-instance",BAD_CAST "xsi"); 266 266 nbNs++; … … 594 594 map* tmp=getMap(toto1->content,"serverAddress"); 595 595 if(tmp!=NULL){ 596 SERVICE_URL = strdup(tmp->value);596 SERVICE_URL = zStrdup(tmp->value); 597 597 } 598 598 else 599 SERVICE_URL = strdup("not_defined");599 SERVICE_URL = zStrdup("not_defined"); 600 600 } 601 601 else 602 SERVICE_URL = strdup("not_defined");602 SERVICE_URL = zStrdup("not_defined"); 603 603 604 604 for(j=0;j<nbSupportedRequests;j++){ … … 1269 1269 while(token!=NULL){ 1270 1270 nc7 = xmlNewNode(ns_ows, BAD_CAST "Value"); 1271 char *tmps= strdup(token);1271 char *tmps=zStrdup(token); 1272 1272 tmps[strlen(tmps)]=0; 1273 1273 nc8 = xmlNewText(BAD_CAST tmps); … … 1746 1746 while(cursor!=NULL){ 1747 1747 elements* ccursor=cursor; 1748 char* tmp= strdup(ccursor->name);1748 char* tmp=zStrdup(ccursor->name); 1749 1749 free(ccursor->name); 1750 1750 ccursor->name=(char*)malloc((strlen(tmp)+strlen(e->name)+2)*sizeof(char)); … … 2671 2671 else 2672 2672 sprintf(session_file_path,"%s",strstr(_tmp->value,"=")+1); 2673 sessId= strdup(session_file_path);2673 sessId=zStrdup(session_file_path); 2674 2674 }else{ 2675 2675 maps* t=getMaps(m,"senv"); … … 2677 2677 while(p!=NULL){ 2678 2678 if(strstr(p->name,"ID")!=NULL){ 2679 sessId= strdup(p->value);2679 sessId=zStrdup(p->value); 2680 2680 break; 2681 2681 }
Note: See TracChangeset
for help on using the changeset viewer.