aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-09 08:24:39 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-09 08:24:39 +0000
commitff9c6d84b08938f0d889cd1c7ff2030d35c682ef (patch)
tree8b796468d9616e6b83e9687ec165852b5128956e
parent55d7e403c3aa2cbfdf4bf9a9728b0c0b7d860e2e (diff)
downloadgnunet-gtk-ff9c6d84b08938f0d889cd1c7ff2030d35c682ef.tar.gz
gnunet-gtk-ff9c6d84b08938f0d889cd1c7ff2030d35c682ef.zip
handle NULL
-rw-r--r--src/fs_event_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs_event_handler.c b/src/fs_event_handler.c
index 1d11329e..b044c86d 100644
--- a/src/fs_event_handler.c
+++ b/src/fs_event_handler.c
@@ -684,7 +684,7 @@ start_download (GtkTreeView *tree_view,
684 -1); 684 -1);
685 dlc = GNUNET_malloc (sizeof (struct DownloadContext)); 685 dlc = GNUNET_malloc (sizeof (struct DownloadContext));
686 dlc->uri = GNUNET_FS_uri_dup (uri); 686 dlc->uri = GNUNET_FS_uri_dup (uri);
687 dlc->mime = GNUNET_strdup (mime); 687 dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL;
688 dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta); 688 dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta);
689 dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta); 689 dlc->meta = GNUNET_CONTAINER_meta_data_duplicate (meta);
690 dlc->rr = gtk_tree_row_reference_new (tm, path); 690 dlc->rr = gtk_tree_row_reference_new (tm, path);