Changeset 282 for trunk/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Jul 27, 2011, 3:26:01 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_service_loader.c
r281 r282 452 452 _getcwd(ntmp,1024); 453 453 #endif 454 r_inputs=getMap(request_inputs,"metapath"); 455 if(r_inputs==NULL){ 456 if(request_inputs==NULL) 457 request_inputs=createMap("metapath",""); 458 else 459 addToMap(request_inputs,"metapath",""); 460 #ifdef DEBUG 461 fprintf(stderr,"ADD METAPATH\n"); 462 dumpMap(request_inputs); 463 #endif 464 r_inputs=getMap(request_inputs,"metapath"); 465 } 454 r_inputs=getMapOrFill(request_inputs,"metapath",""); 455 466 456 char conf_file[10240]; 467 457 snprintf(conf_file,10240,"%s/%s/main.cfg",ntmp,r_inputs->value); … … 1399 1389 * mimeType, encoding, schema 1400 1390 */ 1401 const char *coms[3]; 1402 coms[0]="mimeType"; 1403 coms[1]="encoding"; 1404 coms[2]="schema"; 1391 const char *coms[3]={"mimeType","encoding","schema"}; 1405 1392 for(int l=0;l<3;l++){ 1406 1393 #ifdef DEBUG … … 1433 1420 xmlChar* mv=xmlNodeListGetString(doc,cur4->xmlChildrenNode,1); 1434 1421 map* ltmp=getMap(tmpmaps->content,"mimeType"); 1422 dumpMap(ltmp); 1435 1423 if(mv==NULL || 1436 1424 (xmlStrcasecmp(cur4->name, BAD_CAST "ComplexData")==0 &&
Note: See TracChangeset
for help on using the changeset viewer.