diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-03-04 02:54:16 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-03-04 02:54:16 +0800 |
commit | e908d772d3a03e60b61e6e031bbcf954d75083de (patch) | |
tree | 3c75c2766420ea4e2ff57fd45fc20c7f94c752da /mail | |
parent | 93f4a723188932e8e9feb9eb87c9b26a69217f23 (diff) | |
download | gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.gz gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.bz2 gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.lz gsoc2013-evolution-e908d772d3a03e60b61e6e031bbcf954d75083de.tar.xz 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')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-signature-editor.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index e4484f7d80..66ff5818fa 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +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. + 2003-03-03 Not Zed <NotZed@Ximian.com> * mail-session.c (do_user_message): Do the same as below for 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? */ |