diff options
Diffstat (limited to 'src/fs/fs_file_information.c')
-rw-r--r-- | src/fs/fs_file_information.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 367061cae..2e9b7b667 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c | |||
@@ -732,7 +732,9 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
732 | void *proc_cls) | 732 | void *proc_cls) |
733 | { | 733 | { |
734 | struct GNUNET_FS_FileInformation *pos; | 734 | struct GNUNET_FS_FileInformation *pos; |
735 | int no; | ||
735 | 736 | ||
737 | no = GNUNET_NO; | ||
736 | if (GNUNET_OK != | 738 | if (GNUNET_OK != |
737 | proc (proc_cls, | 739 | proc (proc_cls, |
738 | dir, | 740 | dir, |
@@ -741,6 +743,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
741 | &dir->keywords, | 743 | &dir->keywords, |
742 | &dir->anonymity, | 744 | &dir->anonymity, |
743 | &dir->priority, | 745 | &dir->priority, |
746 | (dir->is_directory) ? &no : &dir->data.file.do_index, | ||
744 | &dir->expirationTime, | 747 | &dir->expirationTime, |
745 | &dir->client_info)) | 748 | &dir->client_info)) |
746 | return; | 749 | return; |
@@ -749,6 +752,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
749 | pos = dir->data.dir.entries; | 752 | pos = dir->data.dir.entries; |
750 | while (pos != NULL) | 753 | while (pos != NULL) |
751 | { | 754 | { |
755 | no = GNUNET_NO; | ||
752 | if (GNUNET_OK != | 756 | if (GNUNET_OK != |
753 | proc (proc_cls, | 757 | proc (proc_cls, |
754 | pos, | 758 | pos, |
@@ -757,6 +761,7 @@ GNUNET_FS_file_information_inspect (struct GNUNET_FS_FileInformation *dir, | |||
757 | &pos->keywords, | 761 | &pos->keywords, |
758 | &pos->anonymity, | 762 | &pos->anonymity, |
759 | &pos->priority, | 763 | &pos->priority, |
764 | (dir->is_directory) ? &no : &dir->data.file.do_index, | ||
760 | &pos->expirationTime, | 765 | &pos->expirationTime, |
761 | &pos->client_info)) | 766 | &pos->client_info)) |
762 | break; | 767 | break; |
@@ -781,7 +786,9 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
781 | void *cleaner_cls) | 786 | void *cleaner_cls) |
782 | { | 787 | { |
783 | struct GNUNET_FS_FileInformation *pos; | 788 | struct GNUNET_FS_FileInformation *pos; |
789 | int no; | ||
784 | 790 | ||
791 | no = GNUNET_NO; | ||
785 | if (fi->is_directory) | 792 | if (fi->is_directory) |
786 | { | 793 | { |
787 | /* clean up directory */ | 794 | /* clean up directory */ |
@@ -799,6 +806,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
799 | &fi->keywords, | 806 | &fi->keywords, |
800 | &fi->anonymity, | 807 | &fi->anonymity, |
801 | &fi->priority, | 808 | &fi->priority, |
809 | &no, | ||
802 | &fi->expirationTime, | 810 | &fi->expirationTime, |
803 | &fi->client_info); | 811 | &fi->client_info); |
804 | GNUNET_free_non_null (fi->data.dir.dir_data); | 812 | GNUNET_free_non_null (fi->data.dir.dir_data); |
@@ -818,6 +826,7 @@ GNUNET_FS_file_information_destroy (struct GNUNET_FS_FileInformation *fi, | |||
818 | &fi->keywords, | 826 | &fi->keywords, |
819 | &fi->anonymity, | 827 | &fi->anonymity, |
820 | &fi->priority, | 828 | &fi->priority, |
829 | &fi->data.file.do_index, | ||
821 | &fi->expirationTime, | 830 | &fi->expirationTime, |
822 | &fi->client_info); | 831 | &fi->client_info); |
823 | } | 832 | } |