aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r--src/fs/fs_tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index 3a697c539..b27fea57f 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -429,7 +429,11 @@ void
429GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te, 429GNUNET_FS_tree_encoder_finish (struct GNUNET_FS_TreeEncoder *te,
430 struct GNUNET_FS_Uri **uri, char **emsg) 430 struct GNUNET_FS_Uri **uri, char **emsg)
431{ 431{
432 (void) te->reader (te->cls, UINT64_MAX, 0, 0, NULL); 432 if (NULL != te->reader)
433 {
434 (void) te->reader (te->cls, UINT64_MAX, 0, 0, NULL);
435 te->reader = NULL;
436 }
433 GNUNET_assert (GNUNET_NO == te->in_next); 437 GNUNET_assert (GNUNET_NO == te->in_next);
434 if (uri != NULL) 438 if (uri != NULL)
435 *uri = te->uri; 439 *uri = te->uri;