Changeset 469 for trunk/zoo-project/zoo-kernel/service.h
- Timestamp:
- May 1, 2014, 1:28:14 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.h
r466 r469 430 430 map *tmp=getMap(m,n); 431 431 if(tmp->value!=NULL) 432 432 free(tmp->value); 433 433 tmp->value=zStrdup(v); 434 434 } … … 450 450 while(_cursor->next!=NULL) 451 451 _cursor=_cursor->next; 452 map* tmp1=getMap( _cursor,tmp->name);453 if(tmp1==NULL) 452 map* tmp1=getMap(*mo,tmp->name); 453 if(tmp1==NULL){ 454 454 _cursor->next=createMap(tmp->name,tmp->value); 455 } 455 456 else{ 456 free(tmp1->value); 457 if(tmp1->value!=NULL) 458 free(tmp1->value); 457 459 tmp1->value=zStrdup(tmp->value); 458 460 } … … 567 569 } 568 570 else{ 569 maps* tmp1=getMaps(*mo,tmp->name);570 571 while(_cursor->next!=NULL) 571 572 _cursor=_cursor->next; 573 maps* tmp1=getMaps(*mo,tmp->name); 572 574 if(tmp1==NULL) 573 575 _cursor->next=dupMaps(&tmp); … … 687 689 _ztmpm->value=zStrdup(value); 688 690 }else{ 689 addToMap(_tmpm->content,subkey,value); 691 maps *tmp=(maps*)malloc(MAPS_SIZE); 692 tmp->name=zStrdup(key); 693 tmp->content=createMap(subkey,value); 694 tmp->next=NULL; 695 addMapsToMaps(&_tmpm,tmp); 696 freeMaps(&tmp); 697 free(tmp); 690 698 } 691 699 }else{
Note: See TracChangeset
for help on using the changeset viewer.