Skip to content
Snippets Groups Projects
Commit 0b4aae51 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Eliminate redundant file truncation.

parent ec849fb4
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -39,8 +39,6 @@ initBFiledataP(struct fileFunnelStdio *bfp, const char *filename, size_t bs, int
}
if ((bfp->fp = fopen(filename, "w")) == NULL) xabort("Failed to open %s", bfp->name);
int fd = fileno(bfp->fp);
ftruncate(fd, (off_t) 0);
bfp->activeCollectors = nc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment