Fixed error: Syscall param write(buf) points to uninitialised byte(s)
[SXSI/XMLTree.git] / libcds / src / static_sequence / static_sequence_wvtree.cpp
index 5030fb1..5f958cd 100644 (file)
@@ -126,17 +126,12 @@ uint static_sequence_wvtree::size() {
 uint static_sequence_wvtree::save(FILE * fp) { 
   uint wr = WVTREE_HDR;
   wr = fwrite(&wr,sizeof(uint),1,fp);
-  fflush(fp);
   if(wr!=1) return 1;
   wr = fwrite(&n,sizeof(uint),1,fp);
-  fflush(fp);
   if(wr!=1) return 1;
   if(c->save(fp)) return 1;
-  fflush(fp);
   if(am->save(fp)) return 1;
-  fflush(fp);
   if(root->save(fp)) return 1;
-  fflush(fp);
   return 0;
 }