mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-01 19:36:37 +02:00
Bug 528600 – g_dummy_file_get_parent("scheme://example.com/")
* gdummyfile.c (g_dummy_file_get_parent): Return NULL if there is no parent. (Owen Taylor, patch by Christian Neumair) svn path=/branches/glib-2-16/; revision=7119
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Backported from trunk:
|
||||||
|
|
||||||
|
Bug 528600 – g_dummy_file_get_parent("scheme://example.com/")
|
||||||
|
|
||||||
|
* gdummyfile.c (g_dummy_file_get_parent): Return NULL if there
|
||||||
|
is no parent. (Owen Taylor, patch by Christian Neumair)
|
||||||
|
|
||||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Backported from trunk:
|
Backported from trunk:
|
||||||
|
@@ -172,7 +172,8 @@ g_dummy_file_get_parent (GFile *file)
|
|||||||
char *uri;
|
char *uri;
|
||||||
GDecodedUri new_decoded_uri;
|
GDecodedUri new_decoded_uri;
|
||||||
|
|
||||||
if (dummy->decoded_uri == NULL)
|
if (dummy->decoded_uri == NULL ||
|
||||||
|
g_strcmp0 (dummy->decoded_uri->path, "/") == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
dirname = g_path_get_dirname (dummy->decoded_uri->path);
|
dirname = g_path_get_dirname (dummy->decoded_uri->path);
|
||||||
|
Reference in New Issue
Block a user