[gedit] Remove overzealous assertion



commit 6dfb899adbc28caffcaa8aaf4c460796d3b64891
Author: Paolo Borelli <porelli gnome org>
Date:   Sat Jul 18 22:04:32 2009 +0200

    Remove overzealous assertion
    
    parent can be null for http uris.

 gedit/gedit-commands-file.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index a5669d5..23767fc 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -482,8 +482,6 @@ _gedit_cmd_file_open (GtkAction   *action,
 		if (file != NULL)
 		{
 			default_path = g_file_get_parent (file);
-			g_return_if_fail (default_path != NULL); /* file cannot be / */
-
 			g_object_unref (file);
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]