From 9d4fb5100eaeac5bb304c33d05f9e2d2dc967828 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 30 Jun 2008 17:49:01 +0000 Subject: Guard against the current filename being NULL. Bug #535483. svn path=/trunk/; revision=8316 --- lib/ephy-file-chooser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c index 6f6e8cf31..a23d99320 100644 --- a/lib/ephy-file-chooser.c +++ b/lib/ephy-file-chooser.c @@ -111,10 +111,11 @@ file_chooser_response_cb (GtkWidget *widget, char *dir, *filename; filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); + if (filename == NULL) return; dir = g_path_get_dirname (filename); - - eel_gconf_set_path (dialog->priv->persist_key, dir); + if (dir != NULL) + eel_gconf_set_path (dialog->priv->persist_key, dir); g_free (dir); g_free (filename); -- cgit v1.2.3