Changeset 747 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Dec 18, 2015, 9:49:09 PM (9 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/response_print.c
r746 r747 2244 2244 n = xmlNewNode(ns, BAD_CAST "ExceptionReport"); 2245 2245 map* version=getMapFromMaps(m,"main","rversion"); 2246 int vid=getVersionId(version->value); 2246 int vid=-1; 2247 if(version!=NULL) 2248 vid=getVersionId(version->value); 2247 2249 if(vid<0) 2248 2250 vid=0; -
trunk/zoo-project/zoo-kernel/service_internal_java.c
r640 r747 101 101 JavaVMOption options[nb]; 102 102 #else 103 JavaVMOption options[nb+nbc0+nbc1 ];103 JavaVMOption options[nb+nbc0+nbc1+1]; 104 104 #endif 105 105 JavaVMInitArgs vm_args; … … 121 121 if(javaXMap!=NULL) 122 122 cursorx=javaXMap->content; 123 options[0].optionString = oclasspath; 123 options[0].optionString = zStrdup(oclasspath); 124 options[0].extraInfo=NULL; 124 125 #ifdef WIN32 125 126 start=2; … … 131 132 char *tmp=parseJVMXXOption(cursorxx); 132 133 options[start+i].optionString = tmp; 134 options[start+i].extraInfo=NULL; 133 135 free(tmp); 134 136 cursorxx=cursorxx->next; … … 137 139 char *tmp=parseJVMXOption(cursorx); 138 140 options[start+i].optionString = tmp; 141 options[start+i].extraInfo=NULL; 139 142 free(tmp); 140 143 cursorx=cursorx->next; … … 310 313 */ 311 314 char *parseJVMXXOption(map* m){ 312 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+ 5)*sizeof(char));315 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+6)*sizeof(char)); 313 316 if(strncasecmp(m->value,"minus",5)==0) 314 317 sprintf(res,"-XX:-%s",m->name);
Note: See TracChangeset
for help on using the changeset viewer.