diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-14 00:40:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-14 00:40:51 +0000 |
commit | cc686b89e0e3804486f38019d3b2092c37edf963 (patch) | |
tree | a5f679ec0e7e12d43757455fedc63bc68ead4b3a /src/fs/gnunet-publish.c | |
parent | c488f01c8ff0a6dc77f6b626cd3b40e6a64e0809 (diff) | |
download | gnunet-cc686b89e0e3804486f38019d3b2092c37edf963.tar.gz gnunet-cc686b89e0e3804486f38019d3b2092c37edf963.zip |
trying to fix #3576
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r-- | src/fs/gnunet-publish.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index f8396416c..ceed3109f 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c | |||
@@ -517,6 +517,8 @@ get_file_information (struct GNUNET_FS_ShareTreeItem *item) | |||
517 | 517 | ||
518 | if (GNUNET_YES == item->is_directory) | 518 | if (GNUNET_YES == item->is_directory) |
519 | { | 519 | { |
520 | if (NULL == item->meta) | ||
521 | item->meta = GNUNET_CONTAINER_meta_data_create (); | ||
520 | GNUNET_CONTAINER_meta_data_delete (item->meta, | 522 | GNUNET_CONTAINER_meta_data_delete (item->meta, |
521 | EXTRACTOR_METATYPE_MIMETYPE, | 523 | EXTRACTOR_METATYPE_MIMETYPE, |
522 | NULL, 0); | 524 | NULL, 0); |