Changeset 293 for trunk/zoo-kernel
- Timestamp:
- Aug 3, 2011, 4:05:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service_internal.c
r292 r293 2334 2334 fflush(stderr); 2335 2335 #endif 2336 struct stat f_status; 2337 int s=stat(fname, &f_status); 2338 if(f_status.st_size>0){ 2339 FILE* fo=fopen(fname,"w+"); 2340 fwrite(content,sizeof(char),length,fo); 2341 free(md5str); 2342 free(fname); 2343 fclose(fo); 2344 } 2336 FILE* fo=fopen(fname,"w+"); 2337 fwrite(content,sizeof(char),length,fo); 2338 fclose(fo); 2339 free(md5str); 2340 free(fname); 2345 2341 } 2346 2342 } … … 2359 2355 if(s==0 && f_status.st_size>0){ 2360 2356 free(md5str); 2361 free(fname);2362 2357 return fname; 2363 2358 }
Note: See TracChangeset
for help on using the changeset viewer.