Changeset 654 for trunk/zoo-project/zoo-kernel/zoo_loader.c
- Timestamp:
- Jun 15, 2015, 1:47:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_loader.c
r648 r654 339 339 free(identifiers); 340 340 } 341 }else{ 342 idptr=extractFromDoc(doc,"/*/*[local-name()='JobID']"); 343 if(idptr!=NULL){ 344 xmlNodeSet* id=idptr->nodesetval; 345 if(id!=NULL){ 346 char* identifiers=NULL; 347 identifiers=(char*)calloc(cgiContentLength,sizeof(char)); 348 identifiers[0]=0; 349 for(int k=0;k<id->nodeNr;k++){ 350 xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1); 351 if(strlen(identifiers)>0){ 352 char *tmp=zStrdup(identifiers); 353 snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content); 354 free(tmp); 355 } 356 else{ 357 snprintf(identifiers,xmlStrlen(content)+1,"%s",content); 358 } 359 xmlFree(content); 360 } 361 xmlXPathFreeObject(idptr); 362 addToMap(tmpMap,"JobID",identifiers); 363 free(identifiers); 364 } 365 } 341 366 } 342 367 }
Note: See TracChangeset
for help on using the changeset viewer.