gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18760 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r18760 - gnunet-gtk/src/fs
Date: Fri, 23 Dec 2011 13:56:44 +0100

Author: grothoff
Date: 2011-12-23 13:56:44 +0100 (Fri, 23 Dec 2011)
New Revision: 18760

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
Log:
-LRN: do not crash on NULL filename

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c       2011-12-23 
09:43:13 UTC (rev 18759)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-edit_publish_dialog.c       2011-12-23 
12:56:44 UTC (rev 18760)
@@ -1051,7 +1051,8 @@
 
   state = GNUNET_malloc (sizeof (struct EditPublicationState));
   state->do_index = do_index;
-  state->short_fn = GNUNET_strdup (short_fn);
+  if (NULL != short_fn)
+    state->short_fn = GNUNET_strdup (short_fn);
   state->anonymity_level = (guint) anonymity_level;
   state->priority = (guint) priority;
   state->fip = fip;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]