Changeset 505 for trunk/zoo-project/zoo-kernel/service_internal.c
- Timestamp:
- Sep 23, 2014, 4:03:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r503 r505 3105 3105 if(tmpMap==NULL || strlen(tmpMap->value)==0){ 3106 3106 char *tmp01=zStrdup(tmp00->value); 3107 tmp01[strlen(tmp01)-1]=0; 3107 3108 setMapInMaps(conf,"lenv","metapath",tmp01); 3108 3109 free(tmp01); … … 3111 3112 else{ 3112 3113 if(tmp00!=NULL && tmpMap!=NULL){ 3113 char *value=(char*)malloc((strlen(tmp00->value)+strlen(tmpMap->value)+2)*sizeof(char)); 3114 sprintf(value,"%s/%s",tmpMap->value,tmp00->value); 3114 char *tmp00s=zStrdup(tmp00->value); 3115 tmp00s[strlen(tmp00s)-1]=0; 3116 char *value=(char*)malloc((strlen(tmp00s)+strlen(tmpMap->value)+2)*sizeof(char)); 3117 sprintf(value,"%s/%s",tmpMap->value,tmp00s); 3115 3118 setMapInMaps(conf,"lenv","metapath",value); 3116 3119 free(value); 3120 free(tmp00s); 3117 3121 value=NULL; 3118 3122 }
Note: See TracChangeset
for help on using the changeset viewer.