aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-signature-editor.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-04 02:54:16 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-04 02:54:16 +0800
commite908d772d3a03e60b61e6e031bbcf954d75083de (patch)
tree3c75c2766420ea4e2ff57fd45fc20c7f94c752da /mail/mail-signature-editor.c
parent93f4a723188932e8e9feb9eb87c9b26a69217f23 (diff)
downloadgsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.gz
gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.zst
gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.zip
Use 'filename' when creating the uri rather than using the uninitialised
2003-03-03 Jeffrey Stedfast <fejj@ximian.com> * mail-signature-editor.c (menu_file_save_cb): Use 'filename' when creating the uri rather than using the uninitialised 'uri' variable to create itself. Fixes bug #38864. svn path=/trunk/; revision=20125
Diffstat (limited to 'mail/mail-signature-editor.c')
-rw-r--r--mail/mail-signature-editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c
index 4ce2ce476c..386af9c00a 100644
--- a/mail/mail-signature-editor.c
+++ b/mail/mail-signature-editor.c
@@ -103,7 +103,7 @@ menu_file_save_cb (BonoboUIComponent *uic,
filename = g_strdup_printf ("%s/.#%s", dirname, base);
printf ("filename = %s\n", filename);
g_free (dirname);
- g_free(base);
+ g_free (base);
CORBA_exception_init (&ev);
@@ -118,9 +118,9 @@ menu_file_save_cb (BonoboUIComponent *uic,
Bonobo_Stream stream;
char *uri;
- uri = g_strdup_printf("file://%s", uri);
+ uri = g_strdup_printf ("file://%s", filename);
stream = bonobo_get_object (uri, "IDL:Bonobo/Stream:1.0", NULL);
- g_free(uri);
+ g_free (uri);
/* FIXME: truncate? */