epiphany r8322 - branches/gnome-2-22/lib
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8322 - branches/gnome-2-22/lib
- Date: Mon, 30 Jun 2008 18:21:59 +0000 (UTC)
Author: chpe
Date: Mon Jun 30 18:21:59 2008
New Revision: 8322
URL: http://svn.gnome.org/viewvc/epiphany?rev=8322&view=rev
Log:
Guard against the current filename being NULL. Bug #535483.
Modified:
branches/gnome-2-22/lib/ephy-file-chooser.c
Modified: branches/gnome-2-22/lib/ephy-file-chooser.c
==============================================================================
--- branches/gnome-2-22/lib/ephy-file-chooser.c (original)
+++ branches/gnome-2-22/lib/ephy-file-chooser.c Mon Jun 30 18:21:59 2008
@@ -112,10 +112,11 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]