Changeset 585 for trunk/zoo-project
- Timestamp:
- Feb 16, 2015, 11:06:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r580 r585 137 137 #endif 138 138 ){ 139 char tmp[3];139 char* tmp = (char*) malloc(3*sizeof(char)); 140 140 sprintf(tmp,"%d",ZOO_LOCK_CREATE_FAILED); 141 141 return tmp; … … 143 143 if(lockShm(lockid)<0){ 144 144 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 145 fflush(stderr); 146 char tmp[3];145 fflush(stderr); 146 char* tmp = (char*) malloc(3*sizeof(char)); 147 147 sprintf(tmp,"%d",ZOO_LOCK_ACQUIRE_FAILED); 148 148 return tmp; … … 2826 2826 else if(strncmp(mtype->value,"image/",6)==0) 2827 2827 ext=createMap("extension",strstr(mtype->value,"/")+1); 2828 else if(strcasecmp(mtype->value,"text/html")==0) 2829 ext=createMap("extension","html"); 2828 2830 else 2829 2831 ext=createMap("extension","txt");
Note: See TracChangeset
for help on using the changeset viewer.