epiphany r8316 - trunk/lib



Author: chpe
Date: Mon Jun 30 17:49:01 2008
New Revision: 8316
URL: http://svn.gnome.org/viewvc/epiphany?rev=8316&view=rev

Log:
Guard against the current filename being NULL. Bug #535483.


Modified:
   trunk/lib/ephy-file-chooser.c

Modified: trunk/lib/ephy-file-chooser.c
==============================================================================
--- trunk/lib/ephy-file-chooser.c	(original)
+++ trunk/lib/ephy-file-chooser.c	Mon Jun 30 17:49:01 2008
@@ -111,10 +111,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]