Commit 946b7800 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

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 Persch)


svn path=/trunk/; revision=6987
parent a52a14e4
2008-06-10 Matthias Clasen <mclasen@redhat.com>
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 Persch)
2008-06-10 Paolo Borelli <pborelli@katamail.com>
* gfile.c (g_file_replace_contents): do not leak the output stream.
......
......@@ -172,7 +172,8 @@ g_dummy_file_get_parent (GFile *file)
char *uri;
GDecodedUri new_decoded_uri;
if (dummy->decoded_uri == NULL)
if (dummy->decoded_uri == NULL ||
g_strcmp0 (dummy->decoded_uri->path, "/") == 0)
return NULL;
dirname = g_path_get_dirname (dummy->decoded_uri->path);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment