aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-07-01 01:49:01 +0800
committerChristian Persch <chpe@src.gnome.org>2008-07-01 01:49:01 +0800
commit9d4fb5100eaeac5bb304c33d05f9e2d2dc967828 (patch)
treecde1ec21116e2bd62387196b057b092a06d6b5df /lib
parent170bb497d473817ca1811f5745021b1cf8c3863e (diff)
downloadgsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar.gz
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar.bz2
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar.lz
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar.xz
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.tar.zst
gsoc2013-epiphany-9d4fb5100eaeac5bb304c33d05f9e2d2dc967828.zip
Guard against the current filename being NULL. Bug #535483.
svn path=/trunk/; revision=8316
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-chooser.c5
1 files 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);