diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-08 13:52:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-08 13:52:05 +0000 |
commit | 7a3814904bb789d6d110356f65e26cc85371bf0f (patch) | |
tree | 906e6707bbdfa88d9ec5895e0bd66c0f4c2a0ebc | |
parent | b7c57d4cded72d07b1be39955e2745961f740f5e (diff) | |
download | gnunet-7a3814904bb789d6d110356f65e26cc85371bf0f.tar.gz gnunet-7a3814904bb789d6d110356f65e26cc85371bf0f.zip |
fix #3569
-rw-r--r-- | src/fs/gnunet-directory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/gnunet-directory.c b/src/fs/gnunet-directory.c index 2f25e282e..2c83d7a5e 100644 --- a/src/fs/gnunet-directory.c +++ b/src/fs/gnunet-directory.c | |||
@@ -91,19 +91,19 @@ print_entry (void *cls, const char *filename, const struct GNUNET_FS_Uri *uri, | |||
91 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); | 91 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME); |
92 | if (uri == NULL) | 92 | if (uri == NULL) |
93 | { | 93 | { |
94 | printf (_("Directory `%s' meta data:\n"), name); | 94 | printf (_("Directory `%s' meta data:\n"), name ? name : ""); |
95 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 95 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); |
96 | printf ("\n"); | 96 | printf ("\n"); |
97 | printf (_("Directory `%s' contents:\n"), name); | 97 | printf (_("Directory `%s' contents:\n"), name ? name : ""); |
98 | GNUNET_free (name); | 98 | GNUNET_free_non_null (name); |
99 | return; | 99 | return; |
100 | } | 100 | } |
101 | string = GNUNET_FS_uri_to_string (uri); | 101 | string = GNUNET_FS_uri_to_string (uri); |
102 | printf ("%s (%s):\n", name, string); | 102 | printf ("%s (%s):\n", name ? name : "", string); |
103 | GNUNET_free (string); | 103 | GNUNET_free (string); |
104 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); | 104 | GNUNET_CONTAINER_meta_data_iterate (meta, &item_printer, NULL); |
105 | printf ("\n"); | 105 | printf ("\n"); |
106 | GNUNET_free (name); | 106 | GNUNET_free_non_null (name); |
107 | } | 107 | } |
108 | 108 | ||
109 | 109 | ||