aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-07-01 02:21:59 +0800
committerChristian Persch <chpe@src.gnome.org>2008-07-01 02:21:59 +0800
commitfed1be77d950324a478e923f48e8c0bf8510257e (patch)
tree66f64a040b87b92347eca31fbb20f46cba1d976a
parentadfa74ce81582d2bef63fe7a07715519d3014381 (diff)
downloadgsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar.gz
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar.bz2
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar.lz
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar.xz
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.tar.zst
gsoc2013-epiphany-fed1be77d950324a478e923f48e8c0bf8510257e.zip
Guard against the current filename being NULL. Bug #535483.
svn path=/branches/gnome-2-22/; revision=8322
-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 9b3fa7d38..1a31959a7 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -112,10 +112,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);