aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-23 12:56:44 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-23 12:56:44 +0000
commitd7ae4956669b108581424c544ac75338843ea0cf (patch)
tree68b9a29f876c62f8955410d705fcf70b21751d9f
parent1077c64a9266873957f8f89b967268cfb1ac3a80 (diff)
downloadgnunet-gtk-d7ae4956669b108581424c544ac75338843ea0cf.tar.gz
gnunet-gtk-d7ae4956669b108581424c544ac75338843ea0cf.zip
-LRN: do not crash on NULL filename
-rw-r--r--src/fs/gnunet-fs-gtk-edit_publish_dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
index 05761a87..80336aed 100644
--- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
+++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
@@ -1051,7 +1051,8 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkBuilder *builder,
1051 1051
1052 state = GNUNET_malloc (sizeof (struct EditPublicationState)); 1052 state = GNUNET_malloc (sizeof (struct EditPublicationState));
1053 state->do_index = do_index; 1053 state->do_index = do_index;
1054 state->short_fn = GNUNET_strdup (short_fn); 1054 if (NULL != short_fn)
1055 state->short_fn = GNUNET_strdup (short_fn);
1055 state->anonymity_level = (guint) anonymity_level; 1056 state->anonymity_level = (guint) anonymity_level;
1056 state->priority = (guint) priority; 1057 state->priority = (guint) priority;
1057 state->fip = fip; 1058 state->fip = fip;