aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_download-save-as.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_download-save-as.c')
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index 8e3cbc5f..41b00216 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -160,6 +160,7 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog * dialog,
160 (dlc->builder, 160 (dlc->builder,
161 "GNUNET_GTK_save_as_dialog_anonymity_spin_button"))); 161 "GNUNET_GTK_save_as_dialog_anonymity_spin_button")));
162 gtk_widget_destroy (GTK_WIDGET (dialog)); 162 gtk_widget_destroy (GTK_WIDGET (dialog));
163 /* we were successful, do not remove the directory (if we created one) */
163 GNUNET_free_non_null (dlc->dirname); 164 GNUNET_free_non_null (dlc->dirname);
164 dlc->dirname = NULL; 165 dlc->dirname = NULL;
165 clean_up_download_as_context (dlc); 166 clean_up_download_as_context (dlc);
@@ -259,7 +260,7 @@ GNUNET_FS_GTK_download_context_start_download (struct DownloadEntry *de)
259 if (de->is_recursive) 260 if (de->is_recursive)
260 opt |= GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE; 261 opt |= GNUNET_FS_DOWNLOAD_OPTION_RECURSIVE;
261 len = GNUNET_FS_uri_chk_get_file_size (de->uri); 262 len = GNUNET_FS_uri_chk_get_file_size (de->uri);
262 if (NULL != de->sr) 263 if (NULL != de->sr->result)
263 { 264 {
264 GNUNET_break (NULL != 265 GNUNET_break (NULL !=
265 GNUNET_FS_download_start_from_search (fs, 266 GNUNET_FS_download_start_from_search (fs,