Commit f5bb47f0 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5672 fix a compile error that just appeared


git-svn-id: file:///svn/toku/tokudb@51010 c7de825b-a66e-492c-adef-691d508d4ae1
parent 45d70ff4
......@@ -380,10 +380,12 @@ dump_file(int f, uint64_t offset, uint64_t size, FILE *outfp) {
unsigned char *XMALLOC_N(size, vp);
uint64_t r = pread(f, vp, size, offset);
if (r == size) {
if (outfp == stdout)
if (outfp == stdout) {
hex_dump(vp, offset, size);
else
fwrite(vp, size, 1, outfp);
} else {
size_t wrote = fwrite(vp, size, 1, outfp);
assert(wrote == 1);
}
}
toku_free(vp);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment