Commit 5e982cbc 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 c1924af6
...@@ -380,10 +380,12 @@ dump_file(int f, uint64_t offset, uint64_t size, FILE *outfp) { ...@@ -380,10 +380,12 @@ dump_file(int f, uint64_t offset, uint64_t size, FILE *outfp) {
unsigned char *XMALLOC_N(size, vp); unsigned char *XMALLOC_N(size, vp);
uint64_t r = pread(f, vp, size, offset); uint64_t r = pread(f, vp, size, offset);
if (r == size) { if (r == size) {
if (outfp == stdout) if (outfp == stdout) {
hex_dump(vp, offset, size); hex_dump(vp, offset, size);
else } else {
fwrite(vp, size, 1, outfp); size_t wrote = fwrite(vp, size, 1, outfp);
assert(wrote == 1);
}
} }
toku_free(vp); 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