From cefebf7ff2e80aaf9ced426598b033482fef039b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 4 Feb 2009 08:01:42 +0000 Subject: [PATCH] Bug 566747 - URIs opened with firefox %u load as local files 2009-02-04 Alexander Larsson Bug 566747 - URIs opened with firefox %u load as local files * gdummyfile.c (g_dummy_file_get_path): Dummy files are never used for local paths, so always return NULL in get_path(). svn path=/trunk/; revision=7849 --- gio/ChangeLog | 8 ++++++++ gio/gdummyfile.c | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 321f75a..8112ce2 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,11 @@ +2009-02-04 Alexander Larsson + + Bug 566747 - URIs opened with firefox %u load as local files + + * gdummyfile.c (g_dummy_file_get_path): + Dummy files are never used for local paths, so always return NULL + in get_path(). + 2009-02-02 Matthias Clasen * === Released 2.19.6 === diff --git a/gio/gdummyfile.c b/gio/gdummyfile.c index 6a5883f..1033b4e 100644 --- a/gio/gdummyfile.c +++ b/gio/gdummyfile.c @@ -144,10 +144,6 @@ g_dummy_file_get_basename (GFile *file) static char * g_dummy_file_get_path (GFile *file) { - GDummyFile *dummy = G_DUMMY_FILE (file); - - if (dummy->decoded_uri) - return g_strdup (dummy->decoded_uri->path); return NULL; } -- 2.7.4