[gedit] Remove overzealous assertion
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Subject: [gedit] Remove overzealous assertion
- Date: Sat, 18 Jul 2009 20:04:25 +0000 (UTC)
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]