From db10ae9888b32a8a1bcccdaba36cec15375b67be Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Fri, 9 Sep 2011 19:29:15 +0300 Subject: Convert app names to the proper encoding before using them as filenames Also add proper conversion error handling where needed. https://bugzilla.gnome.org/show_bug.cgi?id=658028 --- src/window-commands.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/window-commands.c b/src/window-commands.c index 394bee9c2..0189b8588 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -508,6 +508,8 @@ dialog_save_as_application_response_cb (GtkDialog *dialog, if (response == GTK_RESPONSE_OK) { profile_dir = ephy_web_application_get_profile_directory (gtk_entry_get_text (GTK_ENTRY (data->entry))); + if (!profile_dir) + return; profile_exists = g_file_test (profile_dir, G_FILE_TEST_IS_DIR); g_free (profile_dir); -- cgit v1.2.3