summaryrefslogtreecommitdiffstats
path: root/ftp/gftp/tmpstr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/gftp/tmpstr.patch')
-rw-r--r--ftp/gftp/tmpstr.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ftp/gftp/tmpstr.patch b/ftp/gftp/tmpstr.patch
new file mode 100644
index 0000000000..2b9e8dc9c3
--- /dev/null
+++ b/ftp/gftp/tmpstr.patch
@@ -0,0 +1,12 @@
+--- ./src/gtk/misc-gtk.c~ 2007-04-27 01:47:33.000000000 +0200
++++ ./src/gtk/misc-gtk.c 2008-12-21 19:31:37.000000000 +0100
+@@ -757,7 +757,8 @@
+ tempstr = insert_commas (fle->size, NULL, 0);
+
+ gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 2, tempstr);
+- g_free (tempstr);
++ if (tempstr)
++ g_free (tempstr);
+
+ if (fle->user)
+ gtk_clist_set_text (GTK_CLIST (wdata->listbox), clist_num, 3, fle->user);