Changeset 453 for trunk/zoo-project/zoo-kernel/service_conf.y
- Timestamp:
- Feb 12, 2014, 3:25:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_conf.y
r393 r453 283 283 current_element->next=NULL; 284 284 if($2!=NULL) 285 current_element->format= strdup($2);285 current_element->format=zStrdup($2); 286 286 287 287 current_element->defaults=NULL; … … 298 298 current_element->next=NULL; 299 299 if($2!=NULL) 300 current_element->format= strdup($2);300 current_element->format=zStrdup($2); 301 301 current_element->defaults=NULL; 302 302 current_element->supported=NULL; … … 549 549 } 550 550 } 551 | SPAIR { if(curr_key!=NULL) {free(curr_key);curr_key=NULL;} if($1!=NULL) curr_key= strdup($1);if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); }551 | SPAIR { if(curr_key!=NULL) {free(curr_key);curr_key=NULL;} if($1!=NULL) curr_key=zStrdup($1);if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); } 552 552 ; 553 553 … … 561 561 data=1; 562 562 if($1!=NULL){ 563 char *cen= strdup($1);563 char *cen=zStrdup($1); 564 564 my_service->name=(char*)malloc((strlen(cen)-1)*sizeof(char*)); 565 565 cen[strlen(cen)-1]=0; … … 615 615 #endif 616 616 if($1!=NULL){ 617 char *cen= strdup($1);617 char *cen=zStrdup($1); 618 618 current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char*)); 619 619 cen[strlen(cen)-1]=0; … … 677 677 #endif 678 678 if($1!=NULL){ 679 char *cen= strdup($1);679 char *cen=zStrdup($1); 680 680 current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char)); 681 681 cen[strlen(cen)-1]=0; … … 709 709 current_element=NULL; 710 710 current_element=(elements*)malloc(ELEMENTS_SIZE); 711 char *cen= strdup($1);711 char *cen=zStrdup($1); 712 712 current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char)); 713 713 cen[strlen(cen)-1]=0; … … 729 729 #endif 730 730 if($1!=NULL){ 731 char *cen= strdup($1);731 char *cen=zStrdup($1); 732 732 current_element->name=(char*)malloc((strlen(cen))*sizeof(char*)); 733 733 cen[strlen(cen)-1]=0;
Note: See TracChangeset
for help on using the changeset viewer.