Commit 060e1568 authored by Yoni Fogel's avatar Yoni Fogel

[t:2538] Fix memset usage

git-svn-id: file:///svn/toku/tokudb@19553 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4711f8df
...@@ -1371,7 +1371,7 @@ static int setup_nonleaf_block (int n_children, ...@@ -1371,7 +1371,7 @@ static int setup_nonleaf_block (int n_children,
if ((r=bl_write_dbt(&pivots[n_children-1], next_pivots_file, NULL, bl))) return r; if ((r=bl_write_dbt(&pivots[n_children-1], next_pivots_file, NULL, bl))) return r;
// The last pivot was written to the next_pivots file, so we free it now instead of returning it. // The last pivot was written to the next_pivots file, so we free it now instead of returning it.
toku_free(pivots[n_children-1].data); toku_free(pivots[n_children-1].data);
memset(&pivots[n_children-1], sizeof(DBT), 0); memset(&pivots[n_children-1], 0, sizeof(DBT));
struct subtree_estimates new_subtree_estimates = {.nkeys=0, .ndata=0, .dsize=0, .exact=TRUE}; struct subtree_estimates new_subtree_estimates = {.nkeys=0, .ndata=0, .dsize=0, .exact=TRUE};
......
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