diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-26 19:32:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-26 19:32:02 +0000 |
commit | 21ec6b4fe3f737fee3349dd0328905db38b21932 (patch) | |
tree | c6e145eb8a68e7c4314a2b217728a936e37147ea | |
parent | aa64366096dd246d432fd0efafac5cfee357c05e (diff) | |
download | gnunet-gtk-21ec6b4fe3f737fee3349dd0328905db38b21932.tar.gz gnunet-gtk-21ec6b4fe3f737fee3349dd0328905db38b21932.zip |
-properly initialize bo before use, see #2038
-rw-r--r-- | src/fs/gnunet-fs-gtk-main_window_adv_pseudonym.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-main_window_adv_pseudonym.c b/src/fs/gnunet-fs-gtk-main_window_adv_pseudonym.c index 711b78fa..11f983a8 100644 --- a/src/fs/gnunet-fs-gtk-main_window_adv_pseudonym.c +++ b/src/fs/gnunet-fs-gtk-main_window_adv_pseudonym.c | |||
@@ -202,9 +202,11 @@ GNUNET_GTK_select_pseudonym_dialog_response_cb (GtkDialog *dialog, | |||
202 | /* This is a bogus fileinfo. It's needed because edit_publish_dialog | 202 | /* This is a bogus fileinfo. It's needed because edit_publish_dialog |
203 | * was written to work with fileinfo, and return a fileinfo. | 203 | * was written to work with fileinfo, and return a fileinfo. |
204 | */ | 204 | */ |
205 | memset (&bo, 0, sizeof (bo)); | ||
206 | bo.expiration_time = GNUNET_FS_year_to_time (GNUNET_FS_get_current_year () + 2); | ||
207 | bo.anonymity_level = 1; | ||
205 | nds->fip = GNUNET_FS_file_information_create_empty_directory (NULL, NULL, | 208 | nds->fip = GNUNET_FS_file_information_create_empty_directory (NULL, NULL, |
206 | NULL, meta, &bo); | 209 | NULL, meta, &bo); |
207 | memset (&bo, 0, sizeof (bo)); | ||
208 | GNUNET_CONTAINER_meta_data_destroy (meta); | 210 | GNUNET_CONTAINER_meta_data_destroy (meta); |
209 | GNUNET_FS_GTK_edit_publish_dialog (builder, transient, | 211 | GNUNET_FS_GTK_edit_publish_dialog (builder, transient, |
210 | nds->do_index, | 212 | nds->do_index, |