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/mail-signature-editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mail/mail-signature-editor.c') 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 v1.2.3