From e908d772d3a03e60b61e6e031bbcf954d75083de Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 3 Mar 2003 18:54:16 +0000 Subject: Use 'filename' when creating the uri rather than using the uninitialised 2003-03-03 Jeffrey Stedfast * 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 --- mail/ChangeLog | 6 ++++++ 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 + + * 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 * 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? */ -- cgit