diff options
Diffstat (limited to 'quick-test.c')
-rw-r--r-- | quick-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quick-test.c b/quick-test.c index 5dfb2feb..ffde85d9 100644 --- a/quick-test.c +++ b/quick-test.c @@ -46,8 +46,7 @@ int main(int ac, char **av) { struct btrfs_root *root; struct btrfs_trans_handle *trans; - buf = malloc(512); - memset(buf, 0, 512); + buf = calloc(1, 512); radix_tree_init(); |