Changeset 961 for trunk/zoo-project/zoo-kernel/server_internal.c
- Timestamp:
- Sep 8, 2020, 4:51:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/server_internal.c
r921 r961 373 373 return ; 374 374 } 375 fseek(file, 0, SEEK_END);376 375 zStatStruct f_status; 377 376 int s=zStat(filename, &f_status); 378 377 sprintf(rsize,"%lld",f_status.st_size); 379 rewind(file);380 378 if(getMap(content,"storage")==NULL){ 381 379 map* memUse=getMapFromMaps(m,"main","memory"); … … 390 388 if(tmpMap1->value==NULL){ 391 389 setMapInMaps(m,"lenv","message","Unable to allocate the memory required to read the produced file."); 390 return; 392 391 } 393 392 fread(&tmpMap1->value,1,f_status.st_size,file); … … 395 394 } 396 395 } 397 fclose(file); 398 addToMap(content,"size",rsize); 396 fclose(file); 397 if(content!=NULL) 398 addToMap(content,"size",rsize); 399 399 } 400 400
Note: See TracChangeset
for help on using the changeset viewer.