File glib2-fix-g_dummy_file_get_path.patch of Package glib2
From cefebf7ff2e80aaf9ced426598b033482fef039b Mon Sep 17 00:00:00 2001
From: Alexander Larsson <alexl@redhat.com>
Date: Wed, 04 Feb 2009 08:01:42 +0000
Subject: Bug 566747 - URIs opened with firefox %u load as local files
2009-02-04 Alexander Larsson <alexl@redhat.com>
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
---
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;
}
--
cgit v0.8.3.1