diff options
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r-- | src/fs/fs_tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c index b3c632203..e57e4e494 100644 --- a/src/fs/fs_tree.c +++ b/src/fs/fs_tree.c | |||
@@ -285,9 +285,9 @@ GNUNET_FS_tree_encoder_create (struct GNUNET_FS_Handle *h, uint64_t size, | |||
285 | te->progress = progress; | 285 | te->progress = progress; |
286 | te->cont = cont; | 286 | te->cont = cont; |
287 | te->chk_tree_depth = GNUNET_FS_compute_depth (size); | 287 | te->chk_tree_depth = GNUNET_FS_compute_depth (size); |
288 | te->chk_tree = | 288 | te->chk_tree |
289 | GNUNET_malloc (te->chk_tree_depth * CHK_PER_INODE * | 289 | = GNUNET_new_array (te->chk_tree_depth * CHK_PER_INODE, |
290 | sizeof (struct ContentHashKey)); | 290 | struct ContentHashKey); |
291 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 291 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
292 | "Created tree encoder for file with %llu bytes and depth %u\n", | 292 | "Created tree encoder for file with %llu bytes and depth %u\n", |
293 | (unsigned long long) size, | 293 | (unsigned long long) size, |