- Timestamp:
- Sep 12, 2018, 4:02:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_r.c
r877 r880 110 110 if(tmp!=NULL){ 111 111 if(mp!=NULL && strlen(mp->value)>0){ 112 char *mps=zStrdup(mp->value); 113 int i,len=strlen(mps); 114 int j=0; 115 for(i=0;i<len;i++){ 116 if(mps[i]=='/'){ 117 mps[i]='.'; 118 } 119 } 120 char *mn=(char*)malloc((strlen(mps)+strlen(tmp->value)+2)*sizeof(char)); 121 sprintf(mn,"%s.%s",mps,tmp->value); 112 char *mn=(char*)malloc((strlen(mp->value)+strlen(tmp->value)+2)*sizeof(char)); 113 sprintf(mn,"%s/%s",mp->value,tmp->value); 122 114 pName = mkString(mn); 123 115 free(mn); 124 free(mps);125 116 } 126 117 else{ 127 dumpMap(tmp);128 118 char *tmpStr=(char*)malloc((strlen(r_path)+strlen(tmp->value)+2)*sizeof(char)); 129 119 sprintf(tmpStr,"%s/%s",r_path,tmp->value); … … 189 179 char* finalStr=(char*)malloc((strlen(tmpStr)+strlen(_("Unable to run your R service: "))+2)*sizeof(char)); 190 180 sprintf(finalStr,"%s %s",_("Unable to run your R service: "),tmpStr); 191 fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,tmpStr);192 fflush(stderr);193 181 errorException(*main_conf,finalStr,"NoApplicableCode",NULL); 194 182 free(finalStr);
Note: See TracChangeset
for help on using the changeset viewer.