diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-02 20:08:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-02 20:08:41 +0000 |
commit | 33ae86be335ec7d5ba8a8672167258296f556d73 (patch) | |
tree | d1e05e9b3b1bd45fbc4f5441c504dc463accb5a9 /src/fs/gnunet-directory.c | |
parent | 70c78d8e19a9f2e83cc9933dcca52c3cce367a6b (diff) | |
download | gnunet-33ae86be335ec7d5ba8a8672167258296f556d73.tar.gz gnunet-33ae86be335ec7d5ba8a8672167258296f556d73.zip |
fix crash
Diffstat (limited to 'src/fs/gnunet-directory.c')
-rw-r--r-- | src/fs/gnunet-directory.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fs/gnunet-directory.c b/src/fs/gnunet-directory.c index de4ccdd3f..c1a7c78f3 100644 --- a/src/fs/gnunet-directory.c +++ b/src/fs/gnunet-directory.c | |||
@@ -84,6 +84,15 @@ print_entry (void *cls, | |||
84 | { | 84 | { |
85 | char *string; | 85 | char *string; |
86 | 86 | ||
87 | if (uri == NULL) | ||
88 | { | ||
89 | printf (_("Directory summary:\n")); | ||
90 | GNUNET_CONTAINER_meta_data_iterate (meta, | ||
91 | &item_printer, | ||
92 | NULL); | ||
93 | printf ("\n"); | ||
94 | return; | ||
95 | } | ||
87 | string = GNUNET_FS_uri_to_string (uri); | 96 | string = GNUNET_FS_uri_to_string (uri); |
88 | printf ("%s:\n", string); | 97 | printf ("%s:\n", string); |
89 | GNUNET_free (string); | 98 | GNUNET_free (string); |